mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 09:37:29 +00:00
Possible fix for flying NPC lag.
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user