Cancel move destination on navigation stop

This commit is contained in:
fullwall 2022-02-20 01:31:13 +08:00
parent be019c0e83
commit b1b5704145
1 changed files with 1 additions and 0 deletions

View File

@ -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;