From 423ec6999620885b2958b62dc1590e6015254785 Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 25 Jul 2020 21:09:27 +0200 Subject: [PATCH] Fix Trace show/hide Bug --- .../src/de/steamwar/bausystem/tracer/TNTTracer_15.java | 4 ++-- .../tracer/updatecallback/TracerUpdateManager.java | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 BauSystem_API/src/de/steamwar/bausystem/tracer/updatecallback/TracerUpdateManager.java 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 95911bf..de72554 100644 --- a/BauSystem_15/src/de/steamwar/bausystem/tracer/TNTTracer_15.java +++ b/BauSystem_15/src/de/steamwar/bausystem/tracer/TNTTracer_15.java @@ -97,7 +97,7 @@ class TNTTracer_15 { } private static void updateShowPlayer(Player p, PlayerTraceCache_15 traceCache) { - if (!tntCallbackCacheUpdate.run(p) && traceCache.nearLastLocation(p)) { + if (!tntCallbackCacheUpdate.run(p)) { update(p, traceCache); } traceCache.show(p, tntCallbackShow.run(p)); @@ -106,7 +106,7 @@ class TNTTracer_15 { private static float[] noValue = new float[0]; private static void update(Player p, PlayerTraceCache_15 traceCache) { - if (tracerCallbackTracing.run(p)) { + if (!tracerCallbackTracing.run(p) && traceCache.nearLastLocation(p)) { return; } diff --git a/BauSystem_API/src/de/steamwar/bausystem/tracer/updatecallback/TracerUpdateManager.java b/BauSystem_API/src/de/steamwar/bausystem/tracer/updatecallback/TracerUpdateManager.java new file mode 100644 index 0000000..223249c --- /dev/null +++ b/BauSystem_API/src/de/steamwar/bausystem/tracer/updatecallback/TracerUpdateManager.java @@ -0,0 +1,9 @@ +package de.steamwar.bausystem.tracer.updatecallback; + +public class TracerUpdateManager { + + public TracerUpdateManager() { + + } + +}