Merge pull request #931 from ImperatorPrime/master

Fix compilation in Java 7.
This commit is contained in:
LevelX2 2015-04-24 17:36:42 +02:00
commit 15b993fcf6

View file

@ -550,7 +550,7 @@ public class TestPlayer extends ComputerPlayer {
return false; return false;
} else if (groups[2].startsWith("manaInPool=")) { } else if (groups[2].startsWith("manaInPool=")) {
String manaInPool = groups[2].substring(11); String manaInPool = groups[2].substring(11);
int amountOfMana = Integer.parseUnsignedInt(manaInPool); int amountOfMana = Integer.parseInt(manaInPool);
return this.getManaPool().getMana().count() >= amountOfMana; return this.getManaPool().getMana().count() >= amountOfMana;
} }
return true; return true;