From 7d01ebf4edc82e188c007f64d1e6f34d3e0ebc1a Mon Sep 17 00:00:00 2001 From: D4rkr34lm Date: Thu, 9 May 2024 12:18:27 +0200 Subject: [PATCH] Fixed build-destory-only not working --- .../de/steamwar/bausystem/features/tracer/TraceRecorder.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceRecorder.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceRecorder.java index eeb6d941..0fba6df0 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceRecorder.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tracer/TraceRecorder.java @@ -113,7 +113,7 @@ public class TraceRecorder implements Listener { public void stopRecording(Region region) { TraceRecordingWrapper wrappedTrace = activeTraces.getOrDefault(region, null); if (wrappedTrace == null) return; - + wrappedTrace.finalizeRecording(); activeTraces.remove(region); for (TNTPrimed tnt : trackedTNT.getOrDefault(region, Collections.emptyList())) { @@ -247,10 +247,9 @@ public class TraceRecorder implements Listener { * * @param event */ - @EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true) + @EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true) public void onTNTExplode(EntityExplodeEvent event) { if (!(event.getEntity() instanceof TNTPrimed)) return; - Region region = tntSpawnRegion.getOrDefault((TNTPrimed) event.getEntity(), null); if (region == null) return; trackedTNT.get(region).remove((TNTPrimed) event.getEntity()); -- 2.39.5