Fixed block updates not getting broadcasted

This commit is contained in:
Shoghi Cervantes
2014-06-22 21:56:58 +02:00
parent 0e36107878
commit 0be2bd911f
5 changed files with 35 additions and 7 deletions

View File

@ -157,7 +157,7 @@ abstract class BaseChunk implements Chunk{
}
public function setBlock($x, $y, $z, $blockId = null, $meta = null){
$this->sections[$y >> 4]->setBlock($x, $y & 0x0f, $z, $blockId, $meta);
return $this->sections[$y >> 4]->setBlock($x, $y & 0x0f, $z, $blockId & 0xff, $meta & 0x0f);
}
public function getBlockId($x, $y, $z){