From 1729151c19aa90c427275c3505ed6674b09e2af9 Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 12 Sep 2018 21:58:38 -0400 Subject: [PATCH] Missed a case where fish could load chunks --- .../Prevent-Mob-AI-Rules-from-Loading-Chunks.patch | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/Prevent-Mob-AI-Rules-from-Loading-Chunks.patch b/Spigot-Server-Patches/Prevent-Mob-AI-Rules-from-Loading-Chunks.patch index 4779a5f71..41ea23b34 100644 --- a/Spigot-Server-Patches/Prevent-Mob-AI-Rules-from-Loading-Chunks.patch +++ b/Spigot-Server-Patches/Prevent-Mob-AI-Rules-from-Loading-Chunks.patch @@ -63,9 +63,17 @@ index b1661693cf..2cbb6c8f91 100644 } } diff --git a/src/main/java/net/minecraft/server/RandomPositionGenerator.java b/src/main/java/net/minecraft/server/RandomPositionGenerator.java -index 800e0046a8..7bece2ccbf 100644 +index 800e0046a8..bfa6c2eef8 100644 --- a/src/main/java/net/minecraft/server/RandomPositionGenerator.java +++ b/src/main/java/net/minecraft/server/RandomPositionGenerator.java +@@ -0,0 +0,0 @@ public class RandomPositionGenerator { + } + + BlockPosition blockposition2 = new BlockPosition((double)j1 + entitycreature.locX, (double)k1 + entitycreature.locY, (double)l1 + entitycreature.locZ); ++ if (!entitycreature.world.isLoaded(blockposition2)) continue; // Paper + if ((!flag1 || entitycreature.f(blockposition2)) && navigationabstract.a(blockposition2)) { + if (!flag) { + blockposition2 = a(blockposition2, entitycreature); @@ -0,0 +0,0 @@ public class RandomPositionGenerator { }