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