Skip to content

Commit

Permalink
Fixed crash when using strings for flatworld layers
Browse files Browse the repository at this point in the history
I don't know why this didn't show up sooner.
  • Loading branch information
dktapps committed Sep 3, 2020
1 parent c6e0753 commit 17bee5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pocketmine/level/generator/GeneratorRegisterTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
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;
Expand Down Expand Up @@ -59,6 +60,7 @@ public function __construct(Level $level, string $generatorClass, array $generat

public function onRun(){
BlockFactory::init();
ItemFactory::init();
Biome::init();
$manager = new SimpleChunkManager($this->seed, $this->worldHeight);
$this->saveToThreadStore("generation.level{$this->levelId}.manager", $manager);
Expand Down

0 comments on commit 17bee5e

Please sign in to comment.