Fixed #1879 Tile entities were not saved on chunk unload

This commit is contained in:
Shoghi Cervantes 2014-08-26 00:02:20 +02:00
parent 8b90281355
commit ea9fc3c72e

View File

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