mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Fix Reset Flying NPC to Spawn POINT
This commit is contained in:
1 parent
45c43a399b
commit
cc39e62bd4
1 file changed
+5
-3
@@ -1059,12 +1059,14 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
killedtime = 0;
|
||||
extinguish();
|
||||
this.clearActivePotions();
|
||||
moveEntityWithHeading(0,0);
|
||||
distanceWalkedModified = 0;
|
||||
getNavigator().clearPathEntity();
|
||||
if(canFly()){
|
||||
if(this.canFly()){
|
||||
((PathNavigateFlying)getNavigator()).targetPos = null;
|
||||
((PathNavigateFlying)getNavigator()).clearPathEntity();
|
||||
((FlyingMoveHelper)getMoveHelper()).update = false;
|
||||
}
|
||||
moveEntityWithHeading(0,0);
|
||||
distanceWalkedModified = 0;
|
||||
currentAnimation = EnumAnimation.NONE;
|
||||
updateHitbox();
|
||||
updateAI = true;
|
||||
|
||||
Reference in new issue
Block a user