migrated to jackson
This commit is contained in:
@@ -76,7 +76,7 @@ public final class Game extends BaseState {
|
||||
}
|
||||
}
|
||||
} else if (observerMessage instanceof HandMessage hand) {
|
||||
hands.put(hand.getPlayer(), hand.getHand());
|
||||
hands.put(hand.getPlayer(), new ArrayList<>(hand.getHand()));
|
||||
if (hand.getPlayer().equals(self)) {
|
||||
client.printfln("Your hand cards are: %s", hand.getHand());
|
||||
} else {
|
||||
|
@@ -172,7 +172,7 @@ public final class Game extends BaseState {
|
||||
if (juggling) checkActivePlayer(player, JUGGLE_CARD);
|
||||
finishInteraction();
|
||||
|
||||
hands.put(player, hand);
|
||||
hands.put(player, new ArrayList<>(hand));
|
||||
gameScreen.setSelectedCard(null);
|
||||
gameScreen.setHand(player, hand, juggling);
|
||||
juggling = false;
|
||||
|
Reference in New Issue
Block a user