Updated flat preset, do not allow empty Level names

This commit is contained in:
Shoghi Cervantes Pueyo 2013-05-19 20:53:12 +02:00
parent bb9067acd7
commit a7a45dfe96
3 changed files with 5 additions and 2 deletions

View file

@ -108,6 +108,9 @@ class LevelAPI{
}
public function levelExists($name){
if($name === ""){
return false;
}
$path = DATA_PATH."worlds/".$name."/";
if($this->get($name) === false and !file_exists($path."level.pmf")){
$level = new LevelImport($path);