mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-09 21:24:53 +00:00
Fixed already loaded worlds
This commit is contained in:
parent
651398e500
commit
b82e9b2895
@ -102,7 +102,7 @@ class LevelAPI{
|
|||||||
|
|
||||||
public function loadLevel($name){
|
public function loadLevel($name){
|
||||||
if($this->get($name) !== false){
|
if($this->get($name) !== false){
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
$path = DATA_PATH."worlds/".$name."/";
|
$path = DATA_PATH."worlds/".$name."/";
|
||||||
if(!file_exists($path."level.pmf")){
|
if(!file_exists($path."level.pmf")){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user