mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Fixed Server::isLevelgenerated()
This commit is contained in:
@ -759,6 +759,7 @@ class Server{
|
|||||||
return true;
|
return true;
|
||||||
}elseif(!$this->isLevelGenerated($name)){
|
}elseif(!$this->isLevelGenerated($name)){
|
||||||
console("[NOTICE] Level \"" . $name . "\" not found");
|
console("[NOTICE] Level \"" . $name . "\" not found");
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
$path = $this->getDataPath() . "worlds/" . $name . "/";
|
$path = $this->getDataPath() . "worlds/" . $name . "/";
|
||||||
@ -914,7 +915,7 @@ class Server{
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$path = $this->getDataPath() . "worlds/" . $name . "/";
|
$path = $this->getDataPath() . "worlds/" . $name . "/";
|
||||||
if($this->getLevel($name) === false and !file_exists($path . "level.pmf")){
|
if(!($this->getLevel($name) instanceof Level) and !file_exists($path . "level.pmf")){
|
||||||
if(file_exists($path)){
|
if(file_exists($path)){
|
||||||
$level = new LevelImport($path);
|
$level = new LevelImport($path);
|
||||||
if($level->import() === false){ //Try importing a world
|
if($level->import() === false){ //Try importing a world
|
||||||
|
Reference in New Issue
Block a user