Level: remove redundant getAutoSave() condition in close()

this is already checked by save() anyway.
This commit is contained in:
Dylan K. Taylor 2018-05-01 18:47:08 +01:00
parent 2e7db552dc
commit 5368120f13

View File

@ -432,9 +432,7 @@ class Level implements ChunkManager, Metadatable{
$this->unloadChunk($chunk->getX(), $chunk->getZ(), false); $this->unloadChunk($chunk->getX(), $chunk->getZ(), false);
} }
if($this->getAutoSave()){
$this->save(); $this->save();
}
$this->unregisterGenerator(); $this->unregisterGenerator();