From 637e21957f52d83079f43602e809509b66e8c4fb Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Tue, 19 Jan 2021 17:51:14 -0500 Subject: [PATCH] Correctly skip pathfinder ticks for inactive entities (#5085) Fixes #5083 --- Spigot-Server-Patches/Entity-Activation-Range-2.0.patch | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Spigot-Server-Patches/Entity-Activation-Range-2.0.patch b/Spigot-Server-Patches/Entity-Activation-Range-2.0.patch index d5625bc595..a8cd8e38bb 100644 --- a/Spigot-Server-Patches/Entity-Activation-Range-2.0.patch +++ b/Spigot-Server-Patches/Entity-Activation-Range-2.0.patch @@ -303,12 +303,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + // Paper start + public boolean inactiveTick() { -+ if (getCurRate() % getTickRate() != 0) { -+ incRate(); -+ return false; -+ } else { -+ return true; -+ } ++ incRate(); ++ return getCurRate() % getTickRate() == 0; + } + public boolean hasTasks() { + for (PathfinderGoalWrapped task : getTasks()) {