* TableController - Removed unneccessary warinings.

This commit is contained in:
LevelX2 2013-09-28 14:36:44 +02:00
parent 3da3d1c875
commit 2b18ed76cb

View file

@ -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);