fixed some artifacts getting cut in half

This commit is contained in:
Dylan K. Taylor 2019-07-05 19:56:31 +01:00
parent 80747814fb
commit 13de99315b

View File

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