Revert "Improve finding by allowing minimal distance & randomization"

This reverts commit 636fddd642.
This commit is contained in:
CocoTheOwner authored and cyberpwn committed 2021-11-12 21:31:50 -05:00
1 parent 24f3176b1b
commit 6f6e74e015
5 files changed
+28 -39

No files matched your search

@@ -80,7 +80,7 @@ public class Position2 {
}
public double distance(Position2 center) {
return Math.sqrt(Math.pow(center.getX() - x, 2) + Math.pow(center.getZ() - z, 2));
return Math.pow(center.getX() - x, 2) + Math.pow(center.getZ() - z, 2);
}
public Position2 add(int x, int z) {