Flying NPCs no longer hover slightly above the ground

This commit is contained in:
Luis C.M committed 2022-11-07 12:24:33 -06:00
1 parent cc42f1f141
commit 267bc8b239
1 file changed
+1 -1
@@ -39,7 +39,7 @@ public abstract class EntityNPCFlying extends EntityNPCInterface {
}
double heightOffGround = this.posY - this.worldObj.getTopSolidOrLiquidBlock((int) this.posX, (int) this.posZ);
if (heightOffGround > this.ai.flyHeightLimit && this.ai.hasFlyLimit) {
if (heightOffGround > this.ai.flyHeightLimit && this.ai.hasFlyLimit || heightOffGround < this.height) {
super.moveEntityWithHeading(p_70612_1_,p_70612_2_);
return;
}