From 5d2886c0a5df4f64b44b54d7a6181d38d7ca9f6f Mon Sep 17 00:00:00 2001 From: D4rkr34lm Date: Sun, 21 Apr 2024 22:13:27 +0200 Subject: [PATCH] Fix trace is added two times to manager --- .../bausystem/features/tracer/TraceRecordingWrapper.java | 1 - 1 file changed, 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceRecordingWrapper.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceRecordingWrapper.java index 783cec84..cb9aafd9 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceRecordingWrapper.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceRecordingWrapper.java @@ -53,7 +53,6 @@ public class TraceRecordingWrapper { recordList = new ArrayList<>(); trace = new Trace(region, recordList); - TraceManager.instance.add(trace); File recordsSaveFile = new File(TraceManager.tracesFolder, trace.getUuid() + ".records"); recordsOutputStream = new ObjectOutputStream(new GZIPOutputStream(new FileOutputStream(recordsSaveFile))); }