mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 22:27:32 +00:00
Hitbox Fixes
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user