mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-15 12:01:51 +01:00
Conistent order.
This commit is contained in:
parent
ba990054c6
commit
ce406f3280
@ -181,8 +181,8 @@ public class TrigUtil {
|
|||||||
double off = 0.0D;
|
double off = 0.0D;
|
||||||
|
|
||||||
off += Math.max(Math.abs(dX - xPrediction) - (targetWidth / 2 + blockPrecision), 0.0D);
|
off += Math.max(Math.abs(dX - xPrediction) - (targetWidth / 2 + blockPrecision), 0.0D);
|
||||||
off += Math.max(Math.abs(dZ - zPrediction) - (targetWidth / 2 + blockPrecision), 0.0D);
|
|
||||||
off += Math.max(Math.abs(dY - yPrediction) - (targetHeight / 2 + blockPrecision), 0.0D);
|
off += Math.max(Math.abs(dY - yPrediction) - (targetHeight / 2 + blockPrecision), 0.0D);
|
||||||
|
off += Math.max(Math.abs(dZ - zPrediction) - (targetWidth / 2 + blockPrecision), 0.0D);
|
||||||
|
|
||||||
if (off > 1) off = Math.sqrt(off);
|
if (off > 1) off = Math.sqrt(off);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user