SteamWar/BauSystem2.0
Archiviert
12
0

Merge remote-tracking branch 'origin/master'
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
yoyosource 2024-04-22 17:36:08 +02:00
Commit c278b1cfe1
2 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -134,6 +134,7 @@ public class TraceCommand extends SWCommand {
BauSystem.MESSAGE.send("TRACE_MESSAGE_HIDE", player); BauSystem.MESSAGE.send("TRACE_MESSAGE_HIDE", player);
} }
@Register(value = "delete")
@Register(value = "clear") @Register(value = "clear")
public void clear(@Validator Player player) { public void clear(@Validator Player player) {
TraceManager.instance.clear(Region.getRegion(player.getLocation())); TraceManager.instance.clear(Region.getRegion(player.getLocation()));

Datei anzeigen

@ -53,7 +53,6 @@ public class TraceRecordingWrapper {
recordList = new ArrayList<>(); recordList = new ArrayList<>();
trace = new Trace(region, recordList); trace = new Trace(region, recordList);
TraceManager.instance.add(trace);
File recordsSaveFile = new File(TraceManager.tracesFolder, trace.getUuid() + ".records"); File recordsSaveFile = new File(TraceManager.tracesFolder, trace.getUuid() + ".records");
recordsOutputStream = new ObjectOutputStream(new GZIPOutputStream(new FileOutputStream(recordsSaveFile))); recordsOutputStream = new ObjectOutputStream(new GZIPOutputStream(new FileOutputStream(recordsSaveFile)));
} }