mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2025-02-17 03:02:35 +01:00
Fixed ConcurrentModificationException in Game.saveScores Closes #882
This commit is contained in:
parent
44b7b25b43
commit
c76b1b994f
@ -240,7 +240,10 @@ public abstract class Game implements Runnable {
|
||||
if (this.room == null)
|
||||
return;
|
||||
|
||||
for (Map.Entry<GameTeamColors, GameTeam> teamEntry : this.teams.entrySet()) {
|
||||
THashMap<GameTeamColors, GameTeam> teamsCopy = new THashMap<>();
|
||||
teamsCopy.putAll(this.teams);
|
||||
|
||||
for (Map.Entry<GameTeamColors, GameTeam> teamEntry : teamsCopy.entrySet()) {
|
||||
Emulator.getThreading().run(new SaveScoreForTeam(teamEntry.getValue(), this));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user