spam chat less

This commit is contained in:
Leijurv 2018-08-31 14:58:23 -07:00
parent a93af3404b
commit 3f688bc45e
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -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 * @return true if this call started path calculation, false if it was already calculating or executing a path
*/ */
public boolean path() { public boolean path() {
if (goal == null) {
return false;
}
if (goal.isInGoal(playerFeet())) {
return false;
}
synchronized (pathPlanLock) { synchronized (pathPlanLock) {
if (current != null) { if (current != null) {
return false; return false;