fix npc sneaking

This commit is contained in:
Sen 2025-05-18 19:51:32 +02:00
parent 9a6c41661b
commit 89d2c8f6e4
2 changed files with 8 additions and 0 deletions

View file

@ -35,6 +35,10 @@ public abstract class EntityFlyingNPC extends EntityNPC
public float getLegRotation() {
return 0.2f;
}
public boolean isSneakingVisually() {
return false;
}
public void fall(float distance, float damageMultiplier)
{

View file

@ -37,6 +37,10 @@ public abstract class EntityHoveringNPC extends EntityNPC
this.getEntityAttribute(Attributes.FOLLOW_RANGE).setBaseValue(32.0D);
}
public boolean isSneakingVisually() {
return false;
}
public boolean isHovering()
{
return this.getFlag(6);