mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28: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 (Card c : p.getCardsIn(ZoneType.Battlefield)) {
|
||||
for (Card c : p.getCardsIn(ZoneType.Battlefield).threadSafeIterator()) {
|
||||
if (!c.getController().equals(p)) {
|
||||
controllerChangeZoneCorrection(c);
|
||||
affectedCards.add(c);
|
||||
|
||||
Reference in New Issue
Block a user