mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 11:18:52 +00:00
fixed some artifacts getting cut in half
This commit is contained in:
parent
80747814fb
commit
13de99315b
@ -61,6 +61,7 @@ class SimpleChunkManager implements ChunkManager{
|
|||||||
public function setBlockAt(int $x, int $y, int $z, Block $block) : bool{
|
public function setBlockAt(int $x, int $y, int $z, Block $block) : bool{
|
||||||
if($this->terrainPointer->moveTo($x, $y, $z, true)){
|
if($this->terrainPointer->moveTo($x, $y, $z, true)){
|
||||||
$this->terrainPointer->currentSubChunk->setFullBlock($x & 0xf, $y & 0xf, $z & 0xf, $block->getFullId());
|
$this->terrainPointer->currentSubChunk->setFullBlock($x & 0xf, $y & 0xf, $z & 0xf, $block->getFullId());
|
||||||
|
$this->terrainPointer->currentChunk->setChanged(true);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user