mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-31 23:33:06 +00:00
Remove remaining usages of LevelDB::close()
this is handled by the object destructor. closes #4035
This commit is contained in:
parent
57423540f0
commit
16fa26405a
@ -183,8 +183,6 @@ class LevelDB extends BaseLevelProvider{
|
|||||||
if(!$this->levelData->hasTag("generatorOptions", StringTag::class)){
|
if(!$this->levelData->hasTag("generatorOptions", StringTag::class)){
|
||||||
$this->levelData->setString("generatorOptions", "");
|
$this->levelData->setString("generatorOptions", "");
|
||||||
}
|
}
|
||||||
|
|
||||||
$db->close();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getProviderName() : string{
|
public static function getProviderName() : string{
|
||||||
@ -269,9 +267,6 @@ class LevelDB extends BaseLevelProvider{
|
|||||||
$db->put(self::ENTRY_FLAT_WORLD_LAYERS, $out); //Add vanilla flatworld layers to allow terrain generation by MCPE to continue seamlessly
|
$db->put(self::ENTRY_FLAT_WORLD_LAYERS, $out); //Add vanilla flatworld layers to allow terrain generation by MCPE to continue seamlessly
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$db->close();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function saveLevelData(){
|
public function saveLevelData(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user