mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Collect unallocated chunks from the Level provider
This commit is contained in:
@ -2206,6 +2206,12 @@ class Level implements ChunkManager, Metadatable{
|
||||
}
|
||||
}
|
||||
|
||||
foreach($this->provider->getLoadedChunks() as $chunk){
|
||||
if(!isset($this->chunks[Level::chunkHash($chunk->getX(), $chunk->getZ())])){
|
||||
$this->provider->unloadChunk($chunk->getX(), $chunk->getZ(), false);
|
||||
}
|
||||
}
|
||||
|
||||
$this->timings->doChunkGC->stopTiming();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user