This commit is contained in:
Leijurv 2018-11-05 14:55:13 -08:00
parent 4d0bfce712
commit 2da3222115
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
2 changed files with 2 additions and 1 deletions

View File

@ -87,6 +87,7 @@ public final class PathingBehavior extends Behavior implements IPathingBehavior,
dispatchEvents();
if (event.getType() == TickEvent.Type.OUT) {
secretInternalSegmentCancel();
baritone.getPathingControlManager().cancelEverything();
return;
}
tickPath();

View File

@ -82,7 +82,7 @@ public class CustomGoalProcess extends BaritoneProcessHelper implements ICustomG
if (calcFailed) {
onLostControl();
}
if (goal.isInGoal(playerFeet())) {
if (goal == null || goal.isInGoal(playerFeet())) {
onLostControl(); // we're there xd
}
return new PathingCommand(goal, PathingCommandType.SET_GOAL_AND_PATH);