SPIGOT-2315: Neighbour chunk unload marking

This commit is contained in:
md_5 committed 2016-05-25 18:21:54 +10:00
1 parent a022dd22fd
commit ef3ccc94e0
1 file changed
+1 -1
@@ -213,7 +213,7 @@ public class CraftWorld implements World {
continue;
}
net.minecraft.server.Chunk neighbor = world.getChunkProviderServer().getLoadedChunkAt(chunk.locX + x, chunk.locZ + z);
net.minecraft.server.Chunk neighbor = world.getChunkProviderServer().getChunkIfLoaded(chunk.locX + x, chunk.locZ + z);
if (neighbor != null) {
neighbor.setNeighborUnloaded(-xx, -zz);
chunk.setNeighborUnloaded(xx, zz);