mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
SPIGOT-2315: Neighbour chunk unload marking
This commit is contained in:
parent
a022dd22fd
commit
ef3ccc94e0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue