From 1cd3ff31b61d291c3d3d95e46067c02c9550eeb3 Mon Sep 17 00:00:00 2001 From: "Luis C.M" Date: Wed, 4 May 2022 04:58:59 -0500 Subject: [PATCH] Increased the angle limit while pathing for flying NPCs from 15 to 20 degrees --- src/main/java/noppes/npcs/ai/pathfinder/FlyingMoveHelper.java | 2 +- 1 file changed, 1 insertion(+), 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 f1d42f02a..a722b04af 100644 --- a/src/main/java/noppes/npcs/ai/pathfinder/FlyingMoveHelper.java +++ b/src/main/java/noppes/npcs/ai/pathfinder/FlyingMoveHelper.java @@ -59,7 +59,7 @@ public class FlyingMoveHelper extends EntityMoveHelper{ this.entity.velocityChanged = true; } - this.entity.rotationYaw = this.limitAngle(this.entity.rotationYaw,(float) ((Math.atan2(-d0, -d2) + Math.PI) * -(180F / Math.PI)),15.0F); + this.entity.rotationYaw = this.limitAngle(this.entity.rotationYaw,(float) ((Math.atan2(-d0, -d2) + Math.PI) * -(180F / Math.PI)),20.0F); } }