summaryrefslogtreecommitdiffstats
path: root/nms-patches
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-05-15 22:14:47 +1000
committermd_5 <git@md-5.net>2016-05-15 22:14:47 +1000
commit6d133d5440c7c79721f5eafd80b792a0011dc2a3 (patch)
tree3269eaf1c8ef152253f5532edd0124e675d65dac /nms-patches
parent3d0ed18e389859ba015c40d35e0194bb48ddc521 (diff)
downloadcraftbukkit-6d133d5440c7c79721f5eafd80b792a0011dc2a3.tar
craftbukkit-6d133d5440c7c79721f5eafd80b792a0011dc2a3.tar.gz
craftbukkit-6d133d5440c7c79721f5eafd80b792a0011dc2a3.tar.lz
craftbukkit-6d133d5440c7c79721f5eafd80b792a0011dc2a3.tar.xz
craftbukkit-6d133d5440c7c79721f5eafd80b792a0011dc2a3.zip
SPIGOT-2282: Get loaded chunk
Diffstat (limited to 'nms-patches')
-rw-r--r--nms-patches/ChunkProviderServer.patch3
1 files changed, 2 insertions, 1 deletions
diff --git a/nms-patches/ChunkProviderServer.patch b/nms-patches/ChunkProviderServer.patch
index fa993233..f33c3aad 100644
--- a/nms-patches/ChunkProviderServer.patch
+++ b/nms-patches/ChunkProviderServer.patch
@@ -46,6 +46,7 @@
}
public Chunk getChunkAt(int i, int j) {
+- Chunk chunk = this.getOrLoadChunkAt(i, j);
+ return getChunkAt(i, j, null);
+ }
+
@@ -82,7 +83,7 @@
+ }
+
+ public Chunk originalGetChunkAt(int i, int j) {
- Chunk chunk = this.getOrLoadChunkAt(i, j);
++ Chunk chunk = this.getLoadedChunkAt(i, j);
+ boolean newChunk = false;
+ // CraftBukkit end