mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 13:25:16 +00:00
wtf
This commit is contained in:
parent
6bdf5e15c0
commit
06af742bef
@ -1637,7 +1637,7 @@ class Server{
|
|||||||
$this->logger->debug($this->getLanguage()->translateString("pocketmine.debug.enable"));
|
$this->logger->debug($this->getLanguage()->translateString("pocketmine.debug.enable"));
|
||||||
}
|
}
|
||||||
|
|
||||||
Generator::init();
|
Generator::registerDefaultGenerators();
|
||||||
|
|
||||||
foreach((array) $this->getProperty("worlds", []) as $name => $options){
|
foreach((array) $this->getProperty("worlds", []) as $name => $options){
|
||||||
if(!is_array($options)){
|
if(!is_array($options)){
|
||||||
|
@ -36,7 +36,7 @@ use pocketmine\utils\Random;
|
|||||||
abstract class Generator{
|
abstract class Generator{
|
||||||
private static $list = [];
|
private static $list = [];
|
||||||
|
|
||||||
public static function init() : void{
|
public static function registerDefaultGenerators() : void{
|
||||||
self::addGenerator(Flat::class, "flat");
|
self::addGenerator(Flat::class, "flat");
|
||||||
self::addGenerator(Normal::class, "normal");
|
self::addGenerator(Normal::class, "normal");
|
||||||
self::addGenerator(Normal::class, "default");
|
self::addGenerator(Normal::class, "default");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user