From 4d42c823d220c6d11d451c0170469777822b8250 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sun, 15 May 2016 22:14:47 +1000 Subject: [PATCH] SPIGOT-2282: Get loaded chunk By: md_5 --- paper-server/nms-patches/ChunkProviderServer.patch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paper-server/nms-patches/ChunkProviderServer.patch b/paper-server/nms-patches/ChunkProviderServer.patch index fa99323392..f33c3aadcc 100644 --- a/paper-server/nms-patches/ChunkProviderServer.patch +++ b/paper-server/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