From 5967592ced388148eeb37f95244816df39f4baaa Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 25 Jul 2020 20:43:59 +0200 Subject: [PATCH] Fix "/trace show" Fix "/trace hide" Remove ShowRadius --- .../bausystem/tracer/TNTTracer_15.java | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/BauSystem_15/src/de/steamwar/bausystem/tracer/TNTTracer_15.java b/BauSystem_15/src/de/steamwar/bausystem/tracer/TNTTracer_15.java index 7bf223f..95911bf 100644 --- a/BauSystem_15/src/de/steamwar/bausystem/tracer/TNTTracer_15.java +++ b/BauSystem_15/src/de/steamwar/bausystem/tracer/TNTTracer_15.java @@ -92,16 +92,17 @@ class TNTTracer_15 { traceCache = playerMap.get(p); } - if (!traceCache.nearLastLocation(p) && !tntCallbackCacheUpdate.run(p)) { - traceCache.show(p, tntCallbackShow.run(p)); - continue; - } - - update(p, traceCache); - traceCache.show(p, tntCallbackShow.run(p)); + updateShowPlayer(p, traceCache); } } + private static void updateShowPlayer(Player p, PlayerTraceCache_15 traceCache) { + if (!tntCallbackCacheUpdate.run(p) && traceCache.nearLastLocation(p)) { + update(p, traceCache); + } + traceCache.show(p, tntCallbackShow.run(p)); + } + private static float[] noValue = new float[0]; private static void update(Player p, PlayerTraceCache_15 traceCache) { @@ -133,6 +134,10 @@ class TNTTracer_15 { } private static float[] accumulatePositions(float[] floats, float px, float py, float pz) { + if (true) { + return floats; + } + LinkedList linkedList = new LinkedList<>(); for (int i = 0; i < floats.length; i += 3) {