mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-22 19:06:35 +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();
|
GeneratorManager::registerDefaultGenerators();
|
||||||
|
|
||||||
foreach((array) $this->getProperty("worlds", []) as $name => $options){
|
foreach((array) $this->getProperty("worlds", []) as $name => $options){
|
||||||
if(!is_array($options)){
|
if($options === null){
|
||||||
|
$options = [];
|
||||||
|
}elseif(!is_array($options)){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(!$this->loadLevel($name)){
|
if(!$this->loadLevel($name)){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user