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