TNTTracer #70
@ -126,13 +126,13 @@ class TNTTracer_15 {
|
|||||||
traceCache.setUpdatePoints(accumulatePositions(floats, px, py, pz));
|
traceCache.setUpdatePoints(accumulatePositions(floats, px, py, pz));
|
||||||
}
|
}
|
||||||
|
|
||||||
private static float[] accumulatePositions(float[] floatss, float px, float py, float pz) {
|
private static float[] accumulatePositions(float[] floats, float px, float py, float pz) {
|
||||||
LinkedList<Float> linkedList = new LinkedList<>();
|
LinkedList<Float> linkedList = new LinkedList<>();
|
||||||
|
|
||||||
for (int i = 0; i < floatss.length; i += 3) {
|
for (int i = 0; i < floats.length; i += 3) {
|
||||||
float x = floatss[i + 0];
|
float x = floats[i + 0];
|
||||||
float y = floatss[i + 1];
|
float y = floats[i + 1];
|
||||||
float z = floatss[i + 2];
|
float z = floats[i + 2];
|
||||||
|
|
||||||
if (square(x - px) + square(y + 0.49F - py) + square(z - pz) > showRadius) continue;
|
if (square(x - px) + square(y + 0.49F - py) + square(z - pz) > showRadius) continue;
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren