mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-27 09:42:37 +01:00
Cancel move destination on navigation stop
This commit is contained in:
parent
be019c0e83
commit
b1b5704145
@ -342,6 +342,7 @@ public class CitizensNavigator implements Navigator, Runnable {
|
||||
Vector velocity = npc.getEntity().getVelocity();
|
||||
velocity.setX(0).setY(0).setZ(0);
|
||||
npc.getEntity().setVelocity(velocity);
|
||||
NMS.cancelMoveDestination(npc.getEntity());
|
||||
}
|
||||
if (!SUPPORT_CHUNK_TICKETS || !CitizensAPI.hasImplementation() || !CitizensAPI.getPlugin().isEnabled())
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user