CardState - Replaced putIfAsent by put to be 1.7 compatible.

This commit is contained in:
LevelX2 2015-03-03 00:47:32 +01:00
parent 6b0f6be574
commit fb40dc553e

View file

@ -783,7 +783,8 @@ public class GameState implements Serializable, Copyable<GameState> {
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);
}