aboutsummaryrefslogtreecommitdiffhomepage
path: root/Spigot-Server-Patches/0371-improve-CraftWorld-isChunkLoaded.patch
diff options
context:
space:
mode:
Diffstat (limited to 'Spigot-Server-Patches/0371-improve-CraftWorld-isChunkLoaded.patch')
-rw-r--r--Spigot-Server-Patches/0371-improve-CraftWorld-isChunkLoaded.patch7
1 files changed, 3 insertions, 4 deletions
diff --git a/Spigot-Server-Patches/0371-improve-CraftWorld-isChunkLoaded.patch b/Spigot-Server-Patches/0371-improve-CraftWorld-isChunkLoaded.patch
index 697a2b033e..38c1e0435f 100644
--- a/Spigot-Server-Patches/0371-improve-CraftWorld-isChunkLoaded.patch
+++ b/Spigot-Server-Patches/0371-improve-CraftWorld-isChunkLoaded.patch
@@ -9,15 +9,14 @@ waiting for the execution queue to get to our request; We can just query
the chunk status and get a response now, vs having to wait
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
-index 0d5731429abe7b4ff97d6644ff088063dde19e60..5ea7b0b25ae837645f690443d674ce7eb48c1692 100644
+index 2a3d133e51326b0088af2ce53e09bf2fe4b0c3c6..568eca9d3c499e33290aa8ab8548d9c64c97ce5f 100644
--- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
+++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
-@@ -405,14 +405,13 @@ public class CraftWorld implements World {
+@@ -405,13 +405,13 @@ public class CraftWorld implements World {
@Override
public boolean isChunkLoaded(int x, int z) {
-- net.minecraft.server.Chunk chunk = world.getChunkProvider().getChunkAt(x, z, false);
-- return chunk != null;
+- return world.getChunkProvider().isChunkLoaded(x, z);
+ return world.getChunkProvider().getChunkAtIfLoadedImmediately(x, z) != null; // Paper
}