mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +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 = []){
|
public static function generate(string $path, string $name, int $seed, string $generator, array $options = []){
|
||||||
self::checkForLevelDBExtension();
|
self::checkForLevelDBExtension();
|
||||||
|
|
||||||
if(!file_exists($path)){
|
|
||||||
mkdir($path, 0777, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(!file_exists($path . "/db")){
|
if(!file_exists($path . "/db")){
|
||||||
mkdir($path . "/db", 0777, true);
|
mkdir($path . "/db", 0777, true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user