Possible fix for flying NPC lag.

This commit is contained in:
c0508383 committed 2022-08-27 23:48:07 -05:00
1 parent 0707873bce
commit 907126cd79
1 file changed
+2 -2
@@ -261,9 +261,9 @@ public class PathNavigateFlying extends PathNavigate {
}
}
if (this.totalTicks - this.ticksAtLastPos > 10)
if (this.totalTicks - this.ticksAtLastPos > 100)
{
if (vec3.squareDistanceTo(this.lastPosCheck) < 2.25D)
if (vec3.squareDistanceTo(this.lastPosCheck) < this.speed/2)
{
this.clearPathEntity();
}