Update pr stuff

This commit is contained in:
2025-07-03 11:07:52 +02:00
parent 95a97aed93
commit 6f64d03fee
2 changed files with 6 additions and 7 deletions
@@ -70,7 +70,6 @@ public class TraceManager implements Listener {
traceFiles = new File[0]; traceFiles = new File[0];
} }
// TODO: Cleanup all traces if a .meta is present!
for (File traceFile : traceFiles) { for (File traceFile : traceFiles) {
Trace trace = TraceRepository.readTrace(traceFile); Trace trace = TraceRepository.readTrace(traceFile);
if (trace == null) { if (trace == null) {
@@ -18,12 +18,12 @@ public class TraceRepository {
* Increment this when changing serialisation format * Increment this when changing serialisation format
*/ */
public static final int SERIALISATION_VERSION = 2; public static final int SERIALISATION_VERSION = 2;
public static final int WRITE_TICK_DATA = 0x01; public static final int WRITE_TICK_DATA = 0b00000001;
public static final int EXPLOSION = 0x02; public static final int EXPLOSION = 0b00000010;
public static final int IN_WATER = 0x04; public static final int IN_WATER = 0b00000100;
public static final int AFTER_FIRST_EXPLOSION = 0x08; public static final int AFTER_FIRST_EXPLOSION = 0b00001000;
public static final int DESTROYED_BUILD_AREA = 0x10; public static final int DESTROYED_BUILD_AREA = 0b00010000;
public static final int DESTROYED_TEST_BLOCK = 0x20; public static final int DESTROYED_TEST_BLOCK = 0b00100000;
public static File tracesFolder = new File(Bukkit.getWorlds().get(0).getWorldFolder(), "traces"); public static File tracesFolder = new File(Bukkit.getWorlds().get(0).getWorldFolder(), "traces");
@SneakyThrows @SneakyThrows