mirror of
https://github.com/correl/mage.git
synced 2025-04-07 17:00:08 -09:00
fixed emblems not being removed when a player leaves a multiplayer game
This commit is contained in:
parent
6abb829b8f
commit
f177ce14d2
1 changed files with 7 additions and 0 deletions
|
@ -2359,6 +2359,13 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
}
|
||||
}
|
||||
|
||||
//Remove all emblems the player controls
|
||||
for (Iterator<CommandObject> it = this.getState().getCommand().iterator(); it.hasNext();) {
|
||||
if (it.next().getControllerId().equals(playerId)) {
|
||||
it.remove();
|
||||
}
|
||||
}
|
||||
|
||||
Iterator<Entry<UUID, Card>> it = gameCards.entrySet().iterator();
|
||||
|
||||
while (it.hasNext()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue