From fb40dc553eb0c24e19b7bfd136de65ff2d492fac Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 3 Mar 2015 00:47:32 +0100 Subject: [PATCH] CardState - Replaced putIfAsent by put to be 1.7 compatible. --- Mage/src/mage/game/GameState.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mage/src/mage/game/GameState.java b/Mage/src/mage/game/GameState.java index c91ce9894e..c4d01d07bb 100644 --- a/Mage/src/mage/game/GameState.java +++ b/Mage/src/mage/game/GameState.java @@ -783,7 +783,8 @@ public class GameState implements Serializable, Copyable { public CardState getCardState(UUID cardId) { if (!cardState.containsKey(cardId)) { - cardState.putIfAbsent(cardId, new CardState()); + cardState.put(cardId, new CardState()); + // cardState.putIfAbsent(cardId, new CardState()); } return cardState.get(cardId); }