Remove remaining usages of LevelDB::close()

this is handled by the object destructor.

closes #4035
This commit is contained in:
Dylan K. Taylor 2021-02-15 20:09:18 +00:00
parent 57423540f0
commit 16fa26405a
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -183,8 +183,6 @@ class LevelDB extends BaseLevelProvider{
if(!$this->levelData->hasTag("generatorOptions", StringTag::class)){
$this->levelData->setString("generatorOptions", "");
}
$db->close();
}
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->close();
}
public function saveLevelData(){