mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-26 13:19:55 +00:00
Fixed Chunk->setFullBlock() not creating new subchunks, closes #2821
This commit is contained in:
parent
8c536c248d
commit
588ebe446f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user