From 588ebe446fd03c9ff0f622f7e7c589c55ba09365 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 21 Mar 2019 18:47:24 +0000 Subject: [PATCH] Fixed Chunk->setFullBlock() not creating new subchunks, closes #2821 --- src/pocketmine/level/format/Chunk.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/level/format/Chunk.php b/src/pocketmine/level/format/Chunk.php index 68a3103c2f..e707eb2ad6 100644 --- a/src/pocketmine/level/format/Chunk.php +++ b/src/pocketmine/level/format/Chunk.php @@ -197,7 +197,7 @@ class Chunk{ * @param int $block */ public function setFullBlock(int $x, int $y, int $z, int $block) : void{ - $this->getSubChunk($y >> 4)->setFullBlock($x, $y & 0xf, $z, $block); + $this->getSubChunk($y >> 4, true)->setFullBlock($x, $y & 0xf, $z, $block); $this->hasChanged = true; }