aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0930-Skip-POI-finding-if-stuck-in-vehicle.patch
diff options
context:
space:
mode:
authorJake Potrebic <[email protected]>2024-04-12 11:24:08 -0700
committerJake Potrebic <[email protected]>2024-04-12 11:24:08 -0700
commit23a513ce1df5ee7e2697a14f04206687fd15afd8 (patch)
tree1af154c4c5c26873f2a73902302579bf6f2f3b04 /patches/server/0930-Skip-POI-finding-if-stuck-in-vehicle.patch
parentbadf407f77bf2e698b25b4fb3ed4085bdc12c104 (diff)
downloadPaper-feat/vineflower.tar.gz
Paper-feat/vineflower.zip
update fineflower and fix patches againfeat/vineflower
Diffstat (limited to 'patches/server/0930-Skip-POI-finding-if-stuck-in-vehicle.patch')
-rw-r--r--patches/server/0930-Skip-POI-finding-if-stuck-in-vehicle.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0930-Skip-POI-finding-if-stuck-in-vehicle.patch b/patches/server/0930-Skip-POI-finding-if-stuck-in-vehicle.patch
index 762ee16e70..0741c28cb0 100644
--- a/patches/server/0930-Skip-POI-finding-if-stuck-in-vehicle.patch
+++ b/patches/server/0930-Skip-POI-finding-if-stuck-in-vehicle.patch
@@ -19,13 +19,13 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
diff --git a/src/main/java/net/minecraft/world/entity/ai/behavior/AcquirePoi.java b/src/main/java/net/minecraft/world/entity/ai/behavior/AcquirePoi.java
-index f3ffce662336ac53e787f9fe7176cef4b77d950b..ea9a3cb588213af1a1eb9a79d0b7244f99048b5e 100644
+index 4acbdaeab6bbbe3875d1e9323bf2f7a4d56f840e..0e2141bbbf9839a90a78cd04bb70d5f94614248e 100644
--- a/src/main/java/net/minecraft/world/entity/ai/behavior/AcquirePoi.java
+++ b/src/main/java/net/minecraft/world/entity/ai/behavior/AcquirePoi.java
@@ -57,6 +57,7 @@ public class AcquirePoi {
return false;
} else {
- mutableLong.setValue(time + 20L + (long)world.getRandom().nextInt(20));
+ mutableLong.setValue(time + 20L + world.getRandom().nextInt(20));
+ if (entity.getNavigation().isStuck()) mutableLong.add(200); // Paper - Perf: Wait an additional 10s to check again if they're stuck
PoiManager poiManager = world.getPoiManager();
long2ObjectMap.long2ObjectEntrySet().removeIf(entry -> !entry.getValue().isStillValid(time));