fix pause stuttering, fixes #216
This commit is contained in:
parent
738ce25ff0
commit
9e15960581
@ -19,10 +19,10 @@ package baritone.pathing.path;
|
||||
|
||||
import baritone.Baritone;
|
||||
import baritone.api.event.events.TickEvent;
|
||||
import baritone.api.pathing.calc.IPath;
|
||||
import baritone.api.pathing.movement.ActionCosts;
|
||||
import baritone.api.pathing.movement.IMovement;
|
||||
import baritone.api.pathing.movement.MovementStatus;
|
||||
import baritone.api.pathing.calc.IPath;
|
||||
import baritone.api.pathing.path.IPathExecutor;
|
||||
import baritone.api.utils.BetterBlockPos;
|
||||
import baritone.pathing.calc.AbstractNodeCostSearch;
|
||||
@ -244,6 +244,7 @@ public class PathExecutor implements IPathExecutor, Helper {
|
||||
}
|
||||
if (shouldPause()) {
|
||||
logDebug("Pausing since current best path is a backtrack");
|
||||
clearKeys();
|
||||
return true;
|
||||
}
|
||||
MovementStatus movementStatus = movement.update();
|
||||
|
Loading…
Reference in New Issue
Block a user