mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-14 19:42:20 +01:00
SPIGOT-2315: Neighbour chunk unload marking
By: md_5 <git@md-5.net>
This commit is contained in:
parent
ba115c957b
commit
aa92b77bfe
@ -213,7 +213,7 @@ public class CraftWorld implements World {
|
|||||||
continue;
|
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) {
|
if (neighbor != null) {
|
||||||
neighbor.setNeighborUnloaded(-xx, -zz);
|
neighbor.setNeighborUnloaded(-xx, -zz);
|
||||||
chunk.setNeighborUnloaded(xx, zz);
|
chunk.setNeighborUnloaded(xx, zz);
|
||||||
|
Loading…
Reference in New Issue
Block a user