mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Fixed crash when using strings for flatworld layers
I don't know why this didn't show up sooner.
This commit is contained in:
parent
c6e0753c3e
commit
17bee5e349
@ -24,6 +24,7 @@ declare(strict_types=1);
|
||||
namespace pocketmine\level\generator;
|
||||
|
||||
use pocketmine\block\BlockFactory;
|
||||
use pocketmine\item\ItemFactory;
|
||||
use pocketmine\level\biome\Biome;
|
||||
use pocketmine\level\Level;
|
||||
use pocketmine\level\SimpleChunkManager;
|
||||
@ -59,6 +60,7 @@ class GeneratorRegisterTask extends AsyncTask{
|
||||
|
||||
public function onRun(){
|
||||
BlockFactory::init();
|
||||
ItemFactory::init();
|
||||
Biome::init();
|
||||
$manager = new SimpleChunkManager($this->seed, $this->worldHeight);
|
||||
$this->saveToThreadStore("generation.level{$this->levelId}.manager", $manager);
|
||||
|
Loading…
x
Reference in New Issue
Block a user