small fixes

This commit is contained in:
Shoghi Cervantes
2014-03-06 03:03:42 +01:00
parent dd2d229f74
commit ee53e21159
34 changed files with 40 additions and 658 deletions

View File

@ -109,7 +109,7 @@ class LevelAPI{
if($name === ""){
return false;
}
$path = DATA."worlds/".$name."/";
$path = \PocketMine\DATA."worlds/".$name."/";
if($this->get($name) === false and !file_exists($path."level.pmf")){
$level = new Level\LevelImport($path);
if($level->import() === false){
@ -142,7 +142,7 @@ class LevelAPI{
console("[NOTICE] Level \"".$name."\" not found");
return false;
}
$path = DATA."worlds/".$name."/";
$path = \PocketMine\DATA."worlds/".$name."/";
console("[INFO] Preparing level \"".$name."\"");
$level = new PMF\LevelFormat($path."level.pmf");
if(!$level->isLoaded){