mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Fixed Chunk->setFullBlock() not creating new subchunks, closes #2821
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user