SPIGOT-3883: Better reloading of pending unload chunks

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2018-04-04 16:12:32 +10:00
parent f4e35ccf91
commit 10a070d7a2

View File

@@ -64,7 +64,7 @@
+ } + }
+ +
+ public Chunk getChunkAt(int i, int j, Runnable runnable, boolean generate) { + public Chunk getChunkAt(int i, int j, Runnable runnable, boolean generate) {
+ Chunk chunk = getChunkIfLoaded(i, j); + Chunk chunk = getLoadedChunkAt(i, j);
+ ChunkRegionLoader loader = null; + ChunkRegionLoader loader = null;
+ +
+ if (this.chunkLoader instanceof ChunkRegionLoader) { + if (this.chunkLoader instanceof ChunkRegionLoader) {