Archiviert
13
0

Check unload queue so we don't accidentally leave a chunk loaded

Dieser Commit ist enthalten in:
Travis Watkins 2012-08-19 16:06:14 -05:00
Ursprung 7dde6cc566
Commit feb0327d22

Datei anzeigen

@ -197,7 +197,8 @@ public abstract class World implements IBlockAccess {
for (int k1 = i; k1 <= l; ++k1) { for (int k1 = i; k1 <= l; ++k1) {
for (int l1 = k; l1 <= j1; ++l1) { for (int l1 = k; l1 <= j1; ++l1) {
if (!this.isChunkLoaded(k1, l1)) { // CraftBukkit - check unload queue too so we don't leak a chunk
if (!this.isChunkLoaded(k1, l1) || ((WorldServer) this).chunkProviderServer.unloadQueue.contains(k1, l1)) {
return false; return false;
} }
} }