mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 20:44:08 +00:00
Fixed NPC flight zig-zagging at high speeds when near the end of the path.
This commit is contained in:
1 parent
502cde0068
commit
1facfd133d
1 file changed
+1
@@ -35,6 +35,7 @@ public class FlyingMoveHelper extends EntityMoveHelper{
|
||||
double d2 = this.posZ - this.entity.posZ;
|
||||
double d4 = d0 * d0 + d1 * d1 + d2 * d2;
|
||||
double d5 = MathHelper.sqrt_double(d4);
|
||||
speed = Math.min(d5/5.0D,speed);
|
||||
|
||||
double heightOffGround = 0;
|
||||
if(this.entity.ai.hasFlyLimit) {
|
||||
|
||||
Reference in new issue
Block a user