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

@ -36,6 +36,10 @@ public abstract class EntityFlyingNPC extends EntityNPC
return 0.2f; return 0.2f;
} }
public boolean isSneakingVisually() {
return false;
}
public void fall(float distance, float damageMultiplier) 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); this.getEntityAttribute(Attributes.FOLLOW_RANGE).setBaseValue(32.0D);
} }
public boolean isSneakingVisually() {
return false;
}
public boolean isHovering() public boolean isHovering()
{ {
return this.getFlag(6); return this.getFlag(6);