From b6f2bae770818c2d4cfe1a6236111722ffa85148 Mon Sep 17 00:00:00 2001 From: KAMKEEL <28842281+KAMKEEL@users.noreply.github.com> Date: Thu, 13 Aug 2026 03:02:03 -0400 Subject: [PATCH] Stop the hitbox nudge stepping npcs up when they lie down --- src/main/java/noppes/npcs/entity/EntityNPCInterface.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/noppes/npcs/entity/EntityNPCInterface.java b/src/main/java/noppes/npcs/entity/EntityNPCInterface.java index 871ba03a3..b5d97e0f0 100644 --- a/src/main/java/noppes/npcs/entity/EntityNPCInterface.java +++ b/src/main/java/noppes/npcs/entity/EntityNPCInterface.java @@ -1338,8 +1338,14 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti this.height = newHeight; this.setPosition(posX, posY, posZ); - if (newWidth > oldWidth && !this.firstUpdate && !this.worldObj.isRemote) + if (newWidth > oldWidth && !this.firstUpdate && !this.worldObj.isRemote) { + // Lying and crawling widen the box, and moveEntity would answer that by stepping the + // npc up onto whatever it now touches. Only the horizontal push is wanted here. + float prevStepHeight = this.stepHeight; + this.stepHeight = 0.0F; this.moveEntity(oldWidth - newWidth, 0.0D, oldWidth - newWidth); + this.stepHeight = prevStepHeight; + } } @Override