mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Fix concurrent modification exception
This commit is contained in:
@@ -611,7 +611,7 @@ public class GameAction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (Player p : game.getPlayers()) {
|
for (Player p : game.getPlayers()) {
|
||||||
for (Card c : p.getCardsIn(ZoneType.Battlefield)) {
|
for (Card c : p.getCardsIn(ZoneType.Battlefield).threadSafeIterator()) {
|
||||||
if (!c.getController().equals(p)) {
|
if (!c.getController().equals(p)) {
|
||||||
controllerChangeZoneCorrection(c);
|
controllerChangeZoneCorrection(c);
|
||||||
affectedCards.add(c);
|
affectedCards.add(c);
|
||||||
|
|||||||
Reference in New Issue
Block a user