From 8c602c4d16072ab26fa53505fd305cc03dc8dd6d Mon Sep 17 00:00:00 2001 From: luisc Date: Wed, 8 Dec 2021 17:43:27 -0600 Subject: [PATCH] Adjusted floating: NPCs don't float when they're knocked back or hurt. --- 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 f7e1a1aef..5d98fd290 100644 --- a/src/main/java/noppes/npcs/entity/EntityNPCFlying.java +++ b/src/main/java/noppes/npcs/entity/EntityNPCFlying.java @@ -36,7 +36,7 @@ public abstract class EntityNPCFlying extends EntityNPCInterface { return; } - if (!this.onGround) + if (!this.onGround && !this.velocityChanged && this.motionY < 0 && this.hurtTime == 0) { this.motionY *= this.ai.flyGravity; this.velocityChanged = true;