diff --git a/src/main/java/net/citizensnpcs/npc/ai/CitizensNavigator.java b/src/main/java/net/citizensnpcs/npc/ai/CitizensNavigator.java index af15fe3ce..5c2d37a0b 100644 --- a/src/main/java/net/citizensnpcs/npc/ai/CitizensNavigator.java +++ b/src/main/java/net/citizensnpcs/npc/ai/CitizensNavigator.java @@ -282,7 +282,6 @@ public class CitizensNavigator implements Navigator, Runnable { Entity vehicle = NMS.getBukkitVehicle(npc.getEntity()); if (!(vehicle instanceof NPCHolder)) return; - cancelNavigation(); NPC mount = ((NPCHolder) vehicle).getNPC(); switch (getTargetType()) { case ENTITY: @@ -294,6 +293,7 @@ public class CitizensNavigator implements Navigator, Runnable { default: return; } + cancelNavigation(); } private void updatePathfindingRange() {