From 3f688bc45ecf982cb5cfbddfd6441b662da9d028 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Fri, 31 Aug 2018 14:58:23 -0700 Subject: [PATCH] spam chat less --- src/main/java/baritone/behavior/impl/PathingBehavior.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/baritone/behavior/impl/PathingBehavior.java b/src/main/java/baritone/behavior/impl/PathingBehavior.java index 4b5f1f43..e7c20c61 100644 --- a/src/main/java/baritone/behavior/impl/PathingBehavior.java +++ b/src/main/java/baritone/behavior/impl/PathingBehavior.java @@ -203,6 +203,12 @@ public class PathingBehavior extends Behavior { * @return true if this call started path calculation, false if it was already calculating or executing a path */ public boolean path() { + if (goal == null) { + return false; + } + if (goal.isInGoal(playerFeet())) { + return false; + } synchronized (pathPlanLock) { if (current != null) { return false;