mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
Use direct chunk access for neighbour counts on unload
By: md_5 <git@md-5.net>
This commit is contained in:
parent
3d3e6cdcad
commit
d0547bfe77
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@
|
|||
+ continue;
|
||||
+ }
|
||||
+
|
||||
+ Chunk neighbor = this.getLoadedChunkAt(chunk.locX + x, chunk.locZ + z);
|
||||
+ Chunk neighbor = this.chunks.get(ChunkCoordIntPair.a(chunk.locX + x, chunk.locZ + z));
|
||||
+ if (neighbor != null) {
|
||||
+ neighbor.setNeighborUnloaded(-x, -z);
|
||||
+ chunk.setNeighborUnloaded(x, z);
|
||||
|
|
Loading…
Add table
Reference in a new issue