mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-23 03:16:35 +00:00
Server: setup world things at a more appropriate time
closes #2859 this also fixes reported headaches attempting to override generators before world load.
This commit is contained in:
parent
3878f58847
commit
13ea984b12
@ -1692,6 +1692,12 @@ class Server{
|
|||||||
Item::initCreativeItems();
|
Item::initCreativeItems();
|
||||||
Biome::init();
|
Biome::init();
|
||||||
|
|
||||||
|
LevelProviderManager::init();
|
||||||
|
if(extension_loaded("leveldb")){
|
||||||
|
$this->logger->debug($this->getLanguage()->translateString("pocketmine.debug.enable"));
|
||||||
|
}
|
||||||
|
GeneratorManager::registerDefaultGenerators();
|
||||||
|
|
||||||
$this->craftingManager = new CraftingManager();
|
$this->craftingManager = new CraftingManager();
|
||||||
|
|
||||||
$this->resourceManager = new ResourcePackManager($this->getDataPath() . "resource_packs" . DIRECTORY_SEPARATOR, $this->logger);
|
$this->resourceManager = new ResourcePackManager($this->getDataPath() . "resource_packs" . DIRECTORY_SEPARATOR, $this->logger);
|
||||||
@ -1713,13 +1719,6 @@ class Server{
|
|||||||
|
|
||||||
$this->network->registerInterface(new RakLibInterface($this));
|
$this->network->registerInterface(new RakLibInterface($this));
|
||||||
|
|
||||||
LevelProviderManager::init();
|
|
||||||
if(extension_loaded("leveldb")){
|
|
||||||
$this->logger->debug($this->getLanguage()->translateString("pocketmine.debug.enable"));
|
|
||||||
}
|
|
||||||
|
|
||||||
GeneratorManager::registerDefaultGenerators();
|
|
||||||
|
|
||||||
foreach((array) $this->getProperty("worlds", []) as $name => $options){
|
foreach((array) $this->getProperty("worlds", []) as $name => $options){
|
||||||
if($options === null){
|
if($options === null){
|
||||||
$options = [];
|
$options = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user