mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 12:39:43 +00:00
Added isLoaded function to LevelAPI. Fixes #959.
This commit is contained in:
parent
3337e5980e
commit
a6cd8ece1b
1 changed files with 12 additions and 0 deletions
|
|
@ -33,6 +33,18 @@ class LevelAPI{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isLoaded($name)
|
||||||
|
{
|
||||||
|
if(isset($this->levels[$name]))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public function getDefault(){
|
public function getDefault(){
|
||||||
return $this->levels[$this->default];
|
return $this->levels[$this->default];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue