aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2021-08-19 13:06:16 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2021-08-19 13:06:16 +0200
commitc8a767d0125dec4a1cc3d9fecddcb4aa3a45c301 (patch)
tree1842d574c88dac0ed689c80c37846b2b93a3474d /src/main/java/io
parent3a1d5603de6e6e80adc80fa5535be1b05912d1f0 (diff)
downloadNotEnoughUpdates-c8a767d0125dec4a1cc3d9fecddcb4aa3a45c301.tar.gz
NotEnoughUpdates-c8a767d0125dec4a1cc3d9fecddcb4aa3a45c301.tar.bz2
NotEnoughUpdates-c8a767d0125dec4a1cc3d9fecddcb4aa3a45c301.zip
nvm
Diffstat (limited to 'src/main/java/io')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java2
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));
}
}