Fixed Chunk->setFullBlock() not creating new subchunks, closes #2821

This commit is contained in:
Dylan K. Taylor 2019-03-21 18:47:24 +00:00
parent 8c536c248d
commit 588ebe446f

View File

@ -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;
}