simplify, remove setting changed event, always construct new precomputeddata

This commit is contained in:
Leijurv
2022-07-14 21:35:30 -07:00
parent 6b0fb1721b
commit 85ab317c6c
14 changed files with 25 additions and 108 deletions

View File

@@ -112,7 +112,7 @@ public final class MineProcess extends BaritoneProcessHelper implements IMinePro
int mineGoalUpdateInterval = Baritone.settings().mineGoalUpdateInterval.value;
List<BlockPos> curr = new ArrayList<>(knownOreLocations);
if (mineGoalUpdateInterval != 0 && tickCount++ % mineGoalUpdateInterval == 0) { // big brain
CalculationContext context = new CalculationContext(baritone, true, new PrecomputedData());
CalculationContext context = new CalculationContext(baritone, true);
Baritone.getExecutor().execute(() -> rescan(curr, context));
}
if (Baritone.settings().legitMine.value) {