From 2da3222115ece37de5aab28e1c21c9b35e2ae462 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Mon, 5 Nov 2018 14:55:13 -0800 Subject: [PATCH] fix --- src/main/java/baritone/behavior/PathingBehavior.java | 1 + src/main/java/baritone/process/CustomGoalProcess.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/baritone/behavior/PathingBehavior.java b/src/main/java/baritone/behavior/PathingBehavior.java index 9582f3c5..d2a55127 100644 --- a/src/main/java/baritone/behavior/PathingBehavior.java +++ b/src/main/java/baritone/behavior/PathingBehavior.java @@ -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(); diff --git a/src/main/java/baritone/process/CustomGoalProcess.java b/src/main/java/baritone/process/CustomGoalProcess.java index 52769f25..1e1b7473 100644 --- a/src/main/java/baritone/process/CustomGoalProcess.java +++ b/src/main/java/baritone/process/CustomGoalProcess.java @@ -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);