Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 04:20:08 +01:00
Use direct chunk access for neighbour counts on unload
Dieser Commit ist enthalten in:
Ursprung
7e9122e74d
Commit
e22506f964
@ -160,7 +160,7 @@
|
|||||||
+ continue;
|
+ 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) {
|
+ if (neighbor != null) {
|
||||||
+ neighbor.setNeighborUnloaded(-x, -z);
|
+ neighbor.setNeighborUnloaded(-x, -z);
|
||||||
+ chunk.setNeighborUnloaded(x, z);
|
+ chunk.setNeighborUnloaded(x, z);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren