mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 20:07:32 +00:00
Hitbox Fixes
This commit is contained in:
1 parent
a1461665d1
commit
8e9d2fedc5
1 file changed
+5
-2
@@ -1297,6 +1297,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;
|
||||
@@ -1310,8 +1315,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