From b1ee23ad501a6d9b166697a27e1f2040531d0a8f Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sat, 27 Apr 2019 16:01:58 -0700 Subject: [PATCH] taxicab only --- src/api/java/baritone/api/Settings.java | 7 ------- src/main/java/baritone/process/ExploreProcess.java | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/src/api/java/baritone/api/Settings.java b/src/api/java/baritone/api/Settings.java index faf5413d..afd6a0db 100644 --- a/src/api/java/baritone/api/Settings.java +++ b/src/api/java/baritone/api/Settings.java @@ -729,13 +729,6 @@ public final class Settings { */ public final Setting followRadius = new Setting<>(3); - /** - * true = exploration uses pythagorean distance to choose closest uncached chunk - *

- * false = exploration uses manhattan / taxicab distance to choose - */ - public final Setting exploreUsePythagorean = new Setting<>(false); - /** * Turn this on if your exploration filter is enormous, you don't want it to check if it's done, * and you are just fine with it just hanging on completion diff --git a/src/main/java/baritone/process/ExploreProcess.java b/src/main/java/baritone/process/ExploreProcess.java index d3625f21..4c366502 100644 --- a/src/main/java/baritone/process/ExploreProcess.java +++ b/src/main/java/baritone/process/ExploreProcess.java @@ -105,7 +105,7 @@ public class ExploreProcess extends BaritoneProcessHelper implements IExplorePro List centers = new ArrayList<>(); for (int dx = -dist; dx <= dist; dx++) { for (int dz = -dist; dz <= dist; dz++) { - int trueDist = Baritone.settings().exploreUsePythagorean.value ? dx * dx + dz * dz : Math.abs(dx) + Math.abs(dz); + int trueDist = Math.abs(dx) + Math.abs(dz); if (trueDist != dist) { continue; // not considering this one just yet in our expanding search }