mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-01 14:08:08 +01:00
Check if navigator is navigating in waypoints
This commit is contained in:
parent
1986b6203e
commit
d08c1dc623
@ -250,7 +250,8 @@ public class LinearWaypointProvider implements WaypointProvider {
|
||||
|
||||
@Override
|
||||
public boolean shouldExecute(GoalSelector selector) {
|
||||
if (paused || currentDestination != null || !npc.isSpawned() || waypoints.size() == 0)
|
||||
if (paused || currentDestination != null || !npc.isSpawned() || getNavigator().isNavigating()
|
||||
|| waypoints.size() == 0)
|
||||
return false;
|
||||
if (waypoints.size() == 1) {
|
||||
// avoid pathing to the same point and wasting memory.
|
||||
|
Loading…
Reference in New Issue
Block a user