Missed a case where fish could load chunks

This commit is contained in:
Aikar 2018-09-12 21:58:38 -04:00
parent f8f640518e
commit 1729151c19

View file

@ -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 {
}