summaryrefslogtreecommitdiffstats
path: root/nms-patches/ChunkProviderServer.patch
diff options
context:
space:
mode:
authorGeoff Crossland <gcrossland+bukkit@gmail.com>2017-01-31 23:52:21 +0000
committermd_5 <git@md-5.net>2017-04-27 21:25:33 +1000
commit6194f6cc4985a4a6840bb2cc39375caf9835ae68 (patch)
tree8b7fbbd61df2878e006b0766393f1329d4d00608 /nms-patches/ChunkProviderServer.patch
parent55a1f9ff12e69ef036ae999dc8cf63f2622cc873 (diff)
downloadcraftbukkit-6194f6cc4985a4a6840bb2cc39375caf9835ae68.tar
craftbukkit-6194f6cc4985a4a6840bb2cc39375caf9835ae68.tar.gz
craftbukkit-6194f6cc4985a4a6840bb2cc39375caf9835ae68.tar.lz
craftbukkit-6194f6cc4985a4a6840bb2cc39375caf9835ae68.tar.xz
craftbukkit-6194f6cc4985a4a6840bb2cc39375caf9835ae68.zip
Drop RegionFile.chunkExists() in favour of Mojang's own version
Diffstat (limited to 'nms-patches/ChunkProviderServer.patch')
-rw-r--r--nms-patches/ChunkProviderServer.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/nms-patches/ChunkProviderServer.patch b/nms-patches/ChunkProviderServer.patch
index bcb4586a..954d9073 100644
--- a/nms-patches/ChunkProviderServer.patch
+++ b/nms-patches/ChunkProviderServer.patch
@@ -22,7 +22,7 @@
+ if (this.chunkLoader instanceof ChunkRegionLoader) {
+ loader = (ChunkRegionLoader) this.chunkLoader;
+ }
-+ if (loader != null && loader.chunkExists(world, i, j)) {
++ if (loader != null && loader.a(i, j)) {
+ chunk = ChunkIOExecutor.syncChunkLoad(world, loader, this, i, j);
+ }
+ }
@@ -72,7 +72,7 @@
+
+ }
+ // We can only use the queue for already generated chunks
-+ if (chunk == null && loader != null && loader.chunkExists(world, i, j)) {
++ if (chunk == null && loader != null && loader.a(i, j)) {
+ if (runnable != null) {
+ ChunkIOExecutor.queueChunkLoad(world, loader, this, i, j, runnable);
+ return null;