mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-16 14:33:09 +01:00
Missed a case where fish could load chunks
This commit is contained in:
parent
f8f640518e
commit
1729151c19
1 changed files with 9 additions and 1 deletions
|
@ -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 {
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue