spam chat less
This commit is contained in:
parent
a93af3404b
commit
3f688bc45e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user