From 18e16f8615b6c0907a725ae1c87888c05fa73684 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 4 Mar 2019 16:54:44 -0500 Subject: [PATCH] Fixed blockID truncation --- src/pocketmine/level/format/Chunk.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/level/format/Chunk.php b/src/pocketmine/level/format/Chunk.php index 476e69048..e1555dd8f 100644 --- a/src/pocketmine/level/format/Chunk.php +++ b/src/pocketmine/level/format/Chunk.php @@ -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; }