mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 16:24:05 +00:00
Fix for blank map generation
This commit is contained in:
parent
b79374c13d
commit
bf24a937b2
@ -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 or trim($this->getProperty("generator-settings")) != ""){
|
||||
if($this->getProperty("generator-settings") !== false and 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