mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Improved Level object deallocation
This commit is contained in:
@ -304,6 +304,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
}
|
||||
|
||||
public function close(){
|
||||
|
||||
if($this->getAutoSave()){
|
||||
$this->save();
|
||||
}
|
||||
@ -316,6 +317,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
$this->provider->close();
|
||||
$this->provider = null;
|
||||
$this->blockMetadata = null;
|
||||
$this->blockCache = [];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user