SteamWar/BauSystem
Archiviert
13
0

Merge pull request 'Fix "/trace show"' (#83) from TNTTracer into master

Reviewed-by: Lixfel <lixfel@steamwar.de>
Dieser Commit ist enthalten in:
YoyoNow 2020-07-25 20:45:43 +02:00
Commit eca9d5a743

Datei anzeigen

@ -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<Float> linkedList = new LinkedList<>();
for (int i = 0; i < floats.length; i += 3) {