From e8b4f4d2b6938753b3bcb53b1b070d40135db74f Mon Sep 17 00:00:00 2001 From: Leijurv Date: Mon, 22 Apr 2019 15:33:40 -0700 Subject: [PATCH] make the completion check a setting --- src/api/java/baritone/api/Settings.java | 6 ++++++ src/main/java/baritone/process/ExploreProcess.java | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/api/java/baritone/api/Settings.java b/src/api/java/baritone/api/Settings.java index f67ebcf6..5d672047 100644 --- a/src/api/java/baritone/api/Settings.java +++ b/src/api/java/baritone/api/Settings.java @@ -717,6 +717,12 @@ public final class Settings { */ 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 + */ + public final Setting disableCompletionCheck = new Setting<>(false); + /** * Cached chunks (regardless of if they're in RAM or saved to disk) expire and are deleted after this number of seconds * -1 to disable diff --git a/src/main/java/baritone/process/ExploreProcess.java b/src/main/java/baritone/process/ExploreProcess.java index 6818e45b..4abb2629 100644 --- a/src/main/java/baritone/process/ExploreProcess.java +++ b/src/main/java/baritone/process/ExploreProcess.java @@ -83,7 +83,7 @@ public class ExploreProcess extends BaritoneProcessHelper implements IExplorePro return null; } IChunkFilter filter = calcFilter(); - if (filter.finished()) { + if (!Baritone.settings().disableCompletionCheck.value && filter.finished()) { logDirect("Explored all chunks"); onLostControl(); return null;