From 267bc8b239d6b1103034e19976a4c74475b2a936 Mon Sep 17 00:00:00 2001 From: "Luis C.M" <42545778+c0508383@users.noreply.github.com> Date: Mon, 7 Nov 2022 12:24:33 -0600 Subject: [PATCH] Flying NPCs no longer hover slightly above the ground --- src/main/java/noppes/npcs/entity/EntityNPCFlying.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/noppes/npcs/entity/EntityNPCFlying.java b/src/main/java/noppes/npcs/entity/EntityNPCFlying.java index 206a6a04a..65db536bc 100644 --- a/src/main/java/noppes/npcs/entity/EntityNPCFlying.java +++ b/src/main/java/noppes/npcs/entity/EntityNPCFlying.java @@ -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; }