mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-12 16:59:44 +00:00
Fixed blockID truncation
This commit is contained in:
parent
7aa4c18afa
commit
18e16f8615
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user