mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
CardState - Replaced putIfAsent by put to be 1.7 compatible.
This commit is contained in:
parent
6b0f6be574
commit
fb40dc553e
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue