Archiviert
13
0

Fixed chunks being overwritten with empty chunks when the memory setting is immediately changed after a world loads.

Dieser Commit ist enthalten in:
Rigby 2011-08-11 10:29:39 +01:00 committet von EvilSeph
Ursprung f795055012
Commit 96a0e87068

Datei anzeigen

@ -800,7 +800,13 @@ public class CraftWorld implements World {
if (keepLoaded) { if (keepLoaded) {
loadChunk(chunkCoordX + x, chunkCoordZ + z); loadChunk(chunkCoordX + x, chunkCoordZ + z);
} else { } else {
unloadChunk(chunkCoordX + x, chunkCoordZ + z); if (isChunkLoaded(chunkCoordX + x, chunkCoordZ + z)) {
if (this.getHandle().getChunkAt(chunkCoordX + x, chunkCoordZ + z).isEmpty()) {
unloadChunk(chunkCoordX + x, chunkCoordZ + z, false);
} else {
unloadChunk(chunkCoordX + x, chunkCoordZ + z);
}
}
} }
} }
} }