SPIGOT-3883: Better reloading of pending unload chunks

This commit is contained in:
md_5 2018-04-04 16:12:32 +10:00
parent 68b4fb6427
commit fb423b8f48

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) {