Correctly skip pathfinder ticks for inactive entities (#5085)
Fixes #5083
This commit is contained in:
@@ -819,7 +819,7 @@ index 42b690b9215d82346990d93a5cead727b1fa10ab..f103b6630e3d00a4e1a514495c272411
|
||||
private Type() {}
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/PathfinderGoalSelector.java b/src/main/java/net/minecraft/server/PathfinderGoalSelector.java
|
||||
index 22f4fec58fbaab24673dd418700c51671248c510..d3f0327a2a7cdedf3fe8d10df981a9f1cb378d26 100644
|
||||
index 3343e2df9dd8a66fd7678ce13000177d1f3b564b..9cad895c7d008487ce885cbcc2c3966645df4c19 100644
|
||||
--- a/src/main/java/net/minecraft/server/PathfinderGoalSelector.java
|
||||
+++ b/src/main/java/net/minecraft/server/PathfinderGoalSelector.java
|
||||
@@ -27,7 +27,7 @@ public class PathfinderGoalSelector {
|
||||
@@ -840,7 +840,7 @@ index 22f4fec58fbaab24673dd418700c51671248c510..d3f0327a2a7cdedf3fe8d10df981a9f1
|
||||
this.d.add(new PathfinderGoalWrapped(i, pathfindergoal));
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ public class PathfinderGoalSelector {
|
||||
@@ -57,7 +57,7 @@ public class PathfinderGoalSelector {
|
||||
}
|
||||
// Paper end
|
||||
|
||||
@@ -849,7 +849,7 @@ index 22f4fec58fbaab24673dd418700c51671248c510..d3f0327a2a7cdedf3fe8d10df981a9f1
|
||||
// Paper start - remove streams from pathfindergoalselector
|
||||
for (Iterator<PathfinderGoalWrapped> iterator = this.d.iterator(); iterator.hasNext();) {
|
||||
PathfinderGoalWrapped goalWrapped = iterator.next();
|
||||
@@ -157,6 +157,7 @@ public class PathfinderGoalSelector {
|
||||
@@ -153,6 +153,7 @@ public class PathfinderGoalSelector {
|
||||
gameprofilerfiller.exit();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user