Fixed blockID truncation

This commit is contained in:
Dylan K. Taylor 2019-03-04 16:54:44 -05:00
parent 7aa4c18afa
commit 18e16f8615

View File

@ -200,7 +200,7 @@ class Chunk{
* @return bool
*/
public function setBlock(int $x, int $y, int $z, int $blockId, int $meta) : bool{
if($this->getSubChunk($y >> 4, true)->setBlock($x, $y & 0x0f, $z, $blockId & 0xff, $meta & 0x0f)){
if($this->getSubChunk($y >> 4, true)->setBlock($x, $y & 0x0f, $z, $blockId, $meta & 0x0f)){
$this->hasChanged = true;
return true;
}