mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Fix for Blank generator map
This commit is contained in:
parent
5be1b78a7f
commit
4695949ddd
@ -129,7 +129,7 @@ class ServerAPI extends stdClass{ //Yay! I can add anything to this class in run
|
||||
$generator = $this->getProperty("generator");
|
||||
}
|
||||
$this->gen = new Generator($generator, $this->server->seed);
|
||||
if($this->getProperty("generator-settings") !== false){
|
||||
if($this->getProperty("generator-settings") !== false or trim($this->getProperty("generator-settings")) != ""){
|
||||
$this->gen->set("preset", $this->getProperty("generator-settings"));
|
||||
}
|
||||
$this->gen->init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user