Server: Permit NULL value entries in pocketmine.yml worlds

this permits listing worlds to load as keys without values.
This commit is contained in:
Dylan K. Taylor 2019-01-10 19:30:37 +00:00
parent 3380aa3ac2
commit f7d9247d39

View File

@ -1731,7 +1731,9 @@ class Server{
GeneratorManager::registerDefaultGenerators();
foreach((array) $this->getProperty("worlds", []) as $name => $options){
if(!is_array($options)){
if($options === null){
$options = [];
}elseif(!is_array($options)){
continue;
}
if(!$this->loadLevel($name)){