mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11: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
|
|
@ -32,6 +32,18 @@ class LevelAPI{
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function isLoaded($name)
|
||||
{
|
||||
if(isset($this->levels[$name]))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function getDefault(){
|
||||
return $this->levels[$this->default];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue