mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Fixed potentially rollback errors with missing game data (#7273);
This commit is contained in:
parent
7065d3c512
commit
a87c0b1ff6
6 changed files with 34 additions and 37 deletions
|
|
@ -784,7 +784,7 @@ public class GameController implements GameCallback {
|
|||
}
|
||||
|
||||
private synchronized void choosePile(UUID playerId, final String message, final List<? extends Card> pile1, final List<? extends Card> pile2) throws MageException {
|
||||
perform(playerId, playerId1 -> getGameSession(playerId1).choosePile(message, new CardsView(pile1), new CardsView(pile2)));
|
||||
perform(playerId, playerId1 -> getGameSession(playerId1).choosePile(message, new CardsView(game, pile1), new CardsView(game, pile2)));
|
||||
}
|
||||
|
||||
private synchronized void chooseMode(UUID playerId, final Map<UUID, String> modes, final String message) throws MageException {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue