From ef5dff709a9fa0460fb3a28d3c5e4ad633f280a7 Mon Sep 17 00:00:00 2001 From: Nathaniel Brandes Date: Fri, 24 Apr 2015 01:33:52 -0700 Subject: [PATCH] Fix compilation in Java 7. --- Mage.Tests/src/test/java/org/mage/test/player/TestPlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage.Tests/src/test/java/org/mage/test/player/TestPlayer.java b/Mage.Tests/src/test/java/org/mage/test/player/TestPlayer.java index 2d96aa6dda..1effa04962 100644 --- a/Mage.Tests/src/test/java/org/mage/test/player/TestPlayer.java +++ b/Mage.Tests/src/test/java/org/mage/test/player/TestPlayer.java @@ -550,7 +550,7 @@ public class TestPlayer extends ComputerPlayer { return false; } else if (groups[2].startsWith("manaInPool=")) { String manaInPool = groups[2].substring(11); - int amountOfMana = Integer.parseUnsignedInt(manaInPool); + int amountOfMana = Integer.parseInt(manaInPool); return this.getManaPool().getMana().count() >= amountOfMana; } return true;