mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Updated flat preset, do not allow empty Level names
This commit is contained in:
parent
bb9067acd7
commit
a7a45dfe96
3 changed files with 5 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue