From 6f64d03feeba0c44fdbf4364d758827e6c746a7b Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Thu, 3 Jul 2025 11:07:52 +0200 Subject: [PATCH] Update pr stuff --- .../bausystem/features/tracer/TraceManager.java | 1 - .../bausystem/features/tracer/TraceRepository.java | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceManager.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceManager.java index 4a741e77..060db33b 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceManager.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceManager.java @@ -70,7 +70,6 @@ public class TraceManager implements Listener { traceFiles = new File[0]; } - // TODO: Cleanup all traces if a .meta is present! for (File traceFile : traceFiles) { Trace trace = TraceRepository.readTrace(traceFile); if (trace == null) { diff --git a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceRepository.java b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceRepository.java index 3aee95e6..899ea5f1 100644 --- a/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceRepository.java +++ b/BauSystem/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceRepository.java @@ -18,12 +18,12 @@ public class TraceRepository { * Increment this when changing serialisation format */ public static final int SERIALISATION_VERSION = 2; - public static final int WRITE_TICK_DATA = 0x01; - public static final int EXPLOSION = 0x02; - public static final int IN_WATER = 0x04; - public static final int AFTER_FIRST_EXPLOSION = 0x08; - public static final int DESTROYED_BUILD_AREA = 0x10; - public static final int DESTROYED_TEST_BLOCK = 0x20; + public static final int WRITE_TICK_DATA = 0b00000001; + public static final int EXPLOSION = 0b00000010; + public static final int IN_WATER = 0b00000100; + public static final int AFTER_FIRST_EXPLOSION = 0b00001000; + public static final int DESTROYED_BUILD_AREA = 0b00010000; + public static final int DESTROYED_TEST_BLOCK = 0b00100000; public static File tracesFolder = new File(Bukkit.getWorlds().get(0).getWorldFolder(), "traces"); @SneakyThrows