Increased the angle limit while pathing for flying NPCs from 15 to 20 degrees

This commit is contained in:
Luis C.M committed 2022-05-04 04:58:59 -05:00
1 parent 8033b8ba19
commit 1cd3ff31b6
1 file changed
+1 -1
@@ -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);
}
}