From c201df68b2092c174d62b993ce449925266384aa Mon Sep 17 00:00:00 2001 From: Sen Date: Sat, 31 May 2025 20:27:12 +0200 Subject: [PATCH] fix npc jumping --- common/src/main/java/common/entity/npc/EntityNPC.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/common/entity/npc/EntityNPC.java b/common/src/main/java/common/entity/npc/EntityNPC.java index 7e645b1..2c12a04 100755 --- a/common/src/main/java/common/entity/npc/EntityNPC.java +++ b/common/src/main/java/common/entity/npc/EntityNPC.java @@ -3214,7 +3214,7 @@ public abstract class EntityNPC extends EntityLiving protected float getJumpUpwardsMotion() { - return 0.42F * (this.height /* this.getHeight() * 1.8f */ + 2.2f) / 4.0f; + return 0.42F * ((this.height < 1.9f ? 1.9f : this.height) /* this.getHeight() * 1.8f */ + 2.2f) / 4.0f; } public void setAIMoveSpeed(float speedIn)