SteamWar/FightSystem
Archiviert
13
1

Prevent ConcurrentModificatonException
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-11-01 16:23:46 +01:00
Ursprung c995e148b2
Commit cf666a4cb3

Datei anzeigen

@ -82,7 +82,7 @@ public abstract class Countdown {
smallestTime = countdown.time; smallestTime = countdown.time;
} }
for(Countdown countdown : currentCountdowns){ for(Countdown countdown : new ArrayList<>(currentCountdowns)) {
if(countdown.time - smallestTime <= 1) if(countdown.time - smallestTime <= 1)
countdown.prepareFinish(); countdown.prepareFinish();
countdown.time -= smallestTime; countdown.time -= smallestTime;