just one is not good enough tbh

This commit is contained in:
Leijurv 2019-04-19 21:02:58 -07:00
parent 2fcf9ace64
commit af0c3bbd5c
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
2 changed files with 7 additions and 2 deletions

View File

@ -577,6 +577,11 @@ public final class Settings {
*/
public final Setting<Integer> worldExploringChunkOffset = new Setting<>(0);
/**
* Take the 10 closest chunks, even if they aren't strictly tied for distance metric from origin.
*/
public final Setting<Integer> exploreChunkSetMinimumSize = new Setting<>(10);
/**
* When the cache scan gives less blocks than the maximum threshold (but still above zero), scan the main world too.
* <p>
@ -595,7 +600,7 @@ public final class Settings {
public final Setting<Integer> buildRepeatDistance = new Setting<>(0);
/**
* What direction te repeat the build in
* What direction to repeat the build in
*/
public final Setting<EnumFacing> buildRepeatDirection = new Setting<>(EnumFacing.NORTH);

View File

@ -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);
}
}