mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Server: Permit NULL value entries in pocketmine.yml worlds
this permits listing worlds to load as keys without values.
This commit is contained in:
parent
3380aa3ac2
commit
f7d9247d39
@ -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)){
|
||||
|
Loading…
x
Reference in New Issue
Block a user