diff --git a/src/api/java/baritone/api/Settings.java b/src/api/java/baritone/api/Settings.java index 8fbc6b85..0676049d 100644 --- a/src/api/java/baritone/api/Settings.java +++ b/src/api/java/baritone/api/Settings.java @@ -577,6 +577,11 @@ public final class Settings { */ public final Setting worldExploringChunkOffset = new Setting<>(0); + /** + * Take the 10 closest chunks, even if they aren't strictly tied for distance metric from origin. + */ + public final Setting exploreChunkSetMinimumSize = new Setting<>(10); + /** * When the cache scan gives less blocks than the maximum threshold (but still above zero), scan the main world too. *

@@ -595,7 +600,7 @@ public final class Settings { public final Setting buildRepeatDistance = new Setting<>(0); /** - * What direction te repeat the build in + * What direction to repeat the build in */ public final Setting buildRepeatDirection = new Setting<>(EnumFacing.NORTH); diff --git a/src/main/java/baritone/process/ExploreProcess.java b/src/main/java/baritone/process/ExploreProcess.java index 0b26887e..b848b679 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 centers.add(new BlockPos(offsetCenterX, 0, offsetCenterZ)); } } - if (!centers.isEmpty()) { + if (centers.size() > Baritone.settings().exploreChunkSetMinimumSize.value) { return centers.stream().map(pos -> new GoalXZ(pos.getX(), pos.getZ())).toArray(Goal[]::new); } }