make the completion check a setting

This commit is contained in:
Leijurv 2019-04-22 15:33:40 -07:00
parent 714c6773c3
commit e8b4f4d2b6
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
2 changed files with 7 additions and 1 deletions

View File

@ -717,6 +717,12 @@ public final class Settings {
*/
public final Setting<Boolean> 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<Boolean> 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

View File

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