mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-19 15:35:52 +00:00
Fixed #1879 Tile entities were not saved on chunk unload
This commit is contained in:
parent
8b90281355
commit
ea9fc3c72e
@ -1636,6 +1636,10 @@ class Level implements ChunkManager, Metadatable{
|
||||
|
||||
$this->timings->doChunkUnload->startTiming();
|
||||
|
||||
if($this->getAutoSave()){
|
||||
$this->provider->saveChunk($x, $z);
|
||||
}
|
||||
|
||||
unset($this->chunks[$index = Level::chunkHash($x, $z)]);
|
||||
$this->provider->unloadChunk($x, $z, $safe);
|
||||
unset($this->usedChunks[$index]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user