Hitbox Fixes

This commit is contained in:
Kam committed 2026-01-19 16:29:24 -05:00
1 parent 0328be57eb
commit 384b61832d
1 file changed
+5 -2
@@ -1303,6 +1303,11 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
this.setRevengeTarget(null);
this.deathTime = 0;
//fleeingTick = 0;
// Restore hitbox before moving entity to prevent bounding box validation issues
currentAnimation = EnumAnimation.NONE;
updateHitbox();
if (ais.returnToStart && !hasOwner() && !this.isRemote())
setLocationAndAngles(getStartXPos(), getStartYPos(), getStartZPos(), rotationYaw, rotationPitch);
killedtime = 0;
@@ -1316,8 +1321,6 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
}
moveEntityWithHeading(0, 0);
distanceWalkedModified = 0;
currentAnimation = EnumAnimation.NONE;
updateHitbox();
updateAI = true;
ais.movingPos = 0;
if (getOwner() != null) {