SteamWar/BauSystem
Archiviert
13
0

Fix "/trace show"

Fix "/trace hide"
Remove ShowRadius
Dieser Commit ist enthalten in:
jojo 2020-07-25 20:43:59 +02:00
Ursprung 6c625c51c0
Commit 5967592ced

Datei anzeigen

@ -92,14 +92,15 @@ class TNTTracer_15 {
traceCache = playerMap.get(p); traceCache = playerMap.get(p);
} }
if (!traceCache.nearLastLocation(p) && !tntCallbackCacheUpdate.run(p)) { updateShowPlayer(p, traceCache);
traceCache.show(p, tntCallbackShow.run(p)); }
continue;
} }
private static void updateShowPlayer(Player p, PlayerTraceCache_15 traceCache) {
if (!tntCallbackCacheUpdate.run(p) && traceCache.nearLastLocation(p)) {
update(p, traceCache); update(p, traceCache);
traceCache.show(p, tntCallbackShow.run(p));
} }
traceCache.show(p, tntCallbackShow.run(p));
} }
private static float[] noValue = new float[0]; private static float[] noValue = new float[0];
@ -133,6 +134,10 @@ class TNTTracer_15 {
} }
private static float[] accumulatePositions(float[] floats, float px, float py, float pz) { private static float[] accumulatePositions(float[] floats, float px, float py, float pz) {
if (true) {
return floats;
}
LinkedList<Float> linkedList = new LinkedList<>(); LinkedList<Float> linkedList = new LinkedList<>();
for (int i = 0; i < floats.length; i += 3) { for (int i = 0; i < floats.length; i += 3) {