fix npc sneaking
This commit is contained in:
parent
9a6c41661b
commit
89d2c8f6e4
2 changed files with 8 additions and 0 deletions
|
@ -36,6 +36,10 @@ public abstract class EntityFlyingNPC extends EntityNPC
|
|||
return 0.2f;
|
||||
}
|
||||
|
||||
public boolean isSneakingVisually() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void fall(float distance, float damageMultiplier)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue