From 2b18ed76cb05dc80d42c1f05132bc3446b0f5c71 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 28 Sep 2013 14:36:44 +0200 Subject: [PATCH] * TableController - Removed unneccessary warinings. --- Mage.Server/src/main/java/mage/server/TableController.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Mage.Server/src/main/java/mage/server/TableController.java b/Mage.Server/src/main/java/mage/server/TableController.java index abf0550684..125c3b7851 100644 --- a/Mage.Server/src/main/java/mage/server/TableController.java +++ b/Mage.Server/src/main/java/mage/server/TableController.java @@ -183,7 +183,10 @@ public class TableController { } Deck deck = Deck.load(deckList, false, false); if (!Main.isTestMode() && !table.getValidator().validate(deck)) { - throw new InvalidDeckException(name + " has an invalid deck for this format", table.getValidator().getInvalid()); + table.getValidator().getName(); + throw new InvalidDeckException( + new StringBuilder(name).append(" has an invalid deck for the ").append(table.getValidator().getName()).append(" Format").toString(), + table.getValidator().getInvalid()); } Player player = createPlayer(name, seat.getPlayerType(), skill);