NPCs properly stay floating when not navigating and in the air.

This commit is contained in:
luisc committed 2021-12-08 04:41:41 -06:00
1 parent 2147bd00d0
commit c2564de470
3 files changed
+5 -13

No files matched your search

@@ -31,17 +31,16 @@ public abstract class EntityNPCFlying extends EntityNPCInterface {
public void onLivingUpdate()
{
if(!canFly() || this.isJumping){
super.onLivingUpdate();
super.onLivingUpdate();
if(!canFly()){
return;
}
if (!this.onGround && !this.getMoveHelper().isUpdating())
{
this.motionY *= 0.0D;
this.velocityChanged = true;
}
super.onLivingUpdate();
}
@Override