mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 11:57:10 +00:00
LevelDB: Remove redundant folder creation in generate()
This is pointless because the call below - which is _also_ recursively creating directories - will create this directory anyway.
This commit is contained in:
parent
256bdf2581
commit
5132ab6cd9
@ -163,10 +163,6 @@ class LevelDB extends BaseLevelProvider{
|
||||
public static function generate(string $path, string $name, int $seed, string $generator, array $options = []){
|
||||
self::checkForLevelDBExtension();
|
||||
|
||||
if(!file_exists($path)){
|
||||
mkdir($path, 0777, true);
|
||||
}
|
||||
|
||||
if(!file_exists($path . "/db")){
|
||||
mkdir($path . "/db", 0777, true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user