Make precomputed data refresh every 200 ticks (10 seconds)

This commit is contained in:
scorbett123 2022-06-08 14:14:14 +01:00
parent 9e1a5008ed
commit e7c357ab7f

View File

@ -103,6 +103,11 @@ public final class PathingBehavior extends Behavior implements IPathingBehavior,
baritone.getPathingControlManager().cancelEverything();
return;
}
if (ticksElapsedSoFar % 200 == 0) {
precomputedData = new PrecomputedData(); // This is here for now in case settings aren't changed in normal ways, should mean it is updated whatever once every 10 seconds
}
expectedSegmentStart = pathStart();
baritone.getPathingControlManager().preTick();
tickPath();