diff options
author | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2021-08-19 13:06:16 +0200 |
---|---|---|
committer | DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> | 2021-08-19 13:06:16 +0200 |
commit | c8a767d0125dec4a1cc3d9fecddcb4aa3a45c301 (patch) | |
tree | 1842d574c88dac0ed689c80c37846b2b93a3474d | |
parent | 3a1d5603de6e6e80adc80fa5535be1b05912d1f0 (diff) | |
download | NotEnoughUpdates-c8a767d0125dec4a1cc3d9fecddcb4aa3a45c301.tar.gz NotEnoughUpdates-c8a767d0125dec4a1cc3d9fecddcb4aa3a45c301.tar.bz2 NotEnoughUpdates-c8a767d0125dec4a1cc3d9fecddcb4aa3a45c301.zip |
nvm
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java index ae6a2f5c..62f47787 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java @@ -120,6 +120,6 @@ public class CrystalMetalDetectorSolver { } private static float calculateDistance(Vec3 pos1, Vec3 pos2) { - return (float) Math.sqrt(Math.pow(pos2.xCoord - pos1.xCoord, 2) + pos2.yCoord - pos1.yCoord + Math.pow(pos2.zCoord - pos1.zCoord, 2)); + return (float) Math.sqrt(Math.pow(pos2.xCoord - pos1.xCoord, 2) + Math.pow(pos2.yCoord - pos1.yCoord, 2) + Math.pow(pos2.zCoord - pos1.zCoord, 2)); } } |