fix pause stuttering, fixes #216

This commit is contained in:
Leijurv 2018-10-09 16:13:46 -07:00
parent 738ce25ff0
commit 9e15960581
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

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