fix npc jumping

This commit is contained in:
Sen 2025-05-31 20:27:12 +02:00
parent 669fc77eab
commit c201df68b2
Signed by: sen
GPG key ID: 3AC50A6F47D1B722

View file

@ -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)