Archiviert
13
0

Use direct chunk access for neighbour counts on unload

Dieser Commit ist enthalten in:
md_5 2016-05-11 15:59:20 +10:00
Ursprung 7e9122e74d
Commit e22506f964

Datei anzeigen

@ -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);