forked from External/mage
Fixed some problems with possible ConcurrentModificationExceptions and some minor changes.
This commit is contained in:
parent
d97f6c6cd1
commit
81af372bc1
144 changed files with 410 additions and 429 deletions
|
|
@ -2734,9 +2734,11 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
public void setDraw(UUID playerId) {
|
||||
Player player = getPlayer(playerId);
|
||||
if (player != null) {
|
||||
for (UUID playerToSetId : player.getInRange()) {
|
||||
for (UUID playerToSetId : getState().getPlayersInRange(playerId, this)) {
|
||||
Player playerToDraw = getPlayer(playerToSetId);
|
||||
playerToDraw.lostForced(this);
|
||||
if (playerToDraw != null) {
|
||||
playerToDraw.lostForced(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue