From bc0439ee0b5f1d8a90e5a90b7803307825b2a16b Mon Sep 17 00:00:00 2001 From: Kam Date: Wed, 24 Jan 2024 00:10:24 -0500 Subject: [PATCH] Fly Moving Helper --- .../java/noppes/npcs/ai/pathfinder/FlyingMoveHelper.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/noppes/npcs/ai/pathfinder/FlyingMoveHelper.java b/src/main/java/noppes/npcs/ai/pathfinder/FlyingMoveHelper.java index bdb317883..59e4273bc 100644 --- a/src/main/java/noppes/npcs/ai/pathfinder/FlyingMoveHelper.java +++ b/src/main/java/noppes/npcs/ai/pathfinder/FlyingMoveHelper.java @@ -38,7 +38,10 @@ public class FlyingMoveHelper extends EntityMoveHelper{ double d5 = MathHelper.sqrt_double(d4); speed = Math.min(d5/5.0D,speed); - if (this.entity.hurtTime == 0 && d4 > 0.5D) { + // its here louis! + // This is the hurt time that stuns the NPC!!!!!! + // if (this.entity.hurtTime == 0 && d4 > 0.5D) { + if (d4 >= 0.5D) { this.entity.motionX += (speed * (d0 / d5) - this.entity.motionX) * speed; this.entity.motionZ += (speed * (d2 / d5) - this.entity.motionZ) * speed;