This commit is contained in:
Dylan K. Taylor 2018-03-01 09:30:50 +00:00
parent 6bdf5e15c0
commit 06af742bef
2 changed files with 2 additions and 2 deletions

View File

@ -1637,7 +1637,7 @@ class Server{
$this->logger->debug($this->getLanguage()->translateString("pocketmine.debug.enable"));
}
Generator::init();
Generator::registerDefaultGenerators();
foreach((array) $this->getProperty("worlds", []) as $name => $options){
if(!is_array($options)){

View File

@ -36,7 +36,7 @@ use pocketmine\utils\Random;
abstract class Generator{
private static $list = [];
public static function init() : void{
public static function registerDefaultGenerators() : void{
self::addGenerator(Flat::class, "flat");
self::addGenerator(Normal::class, "normal");
self::addGenerator(Normal::class, "default");