Correctly skip pathfinder ticks for inactive entities (#5085)
Fixes #5083
This commit is contained in:
@@ -303,12 +303,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
|
||||
+ // Paper start
|
||||
+ public boolean inactiveTick() {
|
||||
+ if (getCurRate() % getTickRate() != 0) {
|
||||
+ incRate();
|
||||
+ return false;
|
||||
+ } else {
|
||||
+ return true;
|
||||
+ }
|
||||
+ return getCurRate() % getTickRate() == 0;
|
||||
+ }
|
||||
+ public boolean hasTasks() {
|
||||
+ for (PathfinderGoalWrapped task : getTasks()) {
|
||||
|
||||
Reference in New Issue
Block a user