SteamWar/FightSystem
Archiviert
13
1

RecordSystem (Beta) #199

Manuell gemergt
Lixfel hat 40 Commits von recordSystem nach master 2020-11-01 20:11:45 +01:00 zusammengeführt
Nur Änderungen aus Commit 38b95a144b werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -24,7 +24,7 @@ import java.util.List;
public abstract class Recorder { public abstract class Recorder {
private static List<Recorder> recorders = new ArrayList<>(); private static final List<Recorder> recorders = new ArrayList<>();
public static void rBoolean(boolean b){ public static void rBoolean(boolean b){
recorders.forEach((recorder) -> recorder.writeBoolean(b)); recorders.forEach((recorder) -> recorder.writeBoolean(b));
@ -63,7 +63,8 @@ public abstract class Recorder {
} }
public static void closeAll(){ public static void closeAll(){
recorders.forEach(Recorder::close); while(!recorders.isEmpty())
recorders.get(0).close();
} }
protected Recorder(){ protected Recorder(){