mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
Level: remove redundant getAutoSave() condition in close()
this is already checked by save() anyway.
This commit is contained in:
parent
2e7db552dc
commit
5368120f13
@ -432,9 +432,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
$this->unloadChunk($chunk->getX(), $chunk->getZ(), false);
|
||||
}
|
||||
|
||||
if($this->getAutoSave()){
|
||||
$this->save();
|
||||
}
|
||||
$this->save();
|
||||
|
||||
$this->unregisterGenerator();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user