diff --git a/BauSystem_Main/src/de/steamwar/bausystem/tracer/TNTTracer15.java b/BauSystem_Main/src/de/steamwar/bausystem/tracer/TNTTracer15.java index d39dd86..f0ede25 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/tracer/TNTTracer15.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/tracer/TNTTracer15.java @@ -26,6 +26,7 @@ public class TNTTracer15 { private static long current = System.currentTimeMillis(); private static boolean removeInWater = true; + private static long lastExplosion = System.currentTimeMillis(); private static World world; public static void worldInit() { @@ -44,7 +45,7 @@ public class TNTTracer15 { private static final float[] noValue = new float[0]; public static void initTNTTracer_15() { - TNTTracer_15.init(BauSystem.getPlugin(), TNTTracer15::getTracePoints, TNTTracer15::getTraceUpdatePoints, TNTTracer15::getActionBar, TNTTracer15::showMode, p -> ShowManager.get(p).isDirty(), () -> status == Status.RECORD || status == Status.RECORD_AUTO); + TNTTracer_15.init(BauSystem.getPlugin(), TNTTracer15::getTracePoints, TNTTracer15::getTraceUpdatePoints, TNTTracer15::getActionBar, TNTTracer15::showMode, p -> ShowManager.get(p).isDirty(), () -> System.currentTimeMillis() - lastExplosion > 4500); } private static float[] accumulate(LinkedList traces) { @@ -264,6 +265,7 @@ public class TNTTracer15 { static void explode(TNTPrimed tntPrimed) { if (tntFrames.isEmpty()) return; + lastExplosion = System.currentTimeMillis(); tntFrames.getLast().explode(tntPrimed); }