From 502471329114b221da003c39bbda155538a8c4aa Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Mon, 26 Nov 2018 14:29:06 +0000 Subject: [PATCH] Fixed population artifacts always generating in the bottom subchunk, closes #2538 --- src/pocketmine/level/SimpleChunkManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/level/SimpleChunkManager.php b/src/pocketmine/level/SimpleChunkManager.php index 724388178..74d071a2f 100644 --- a/src/pocketmine/level/SimpleChunkManager.php +++ b/src/pocketmine/level/SimpleChunkManager.php @@ -75,7 +75,7 @@ class SimpleChunkManager implements ChunkManager{ public function setBlockIdAndDataAt(int $x, int $y, int $z, int $id, int $data) : void{ if(($chunk = $this->getChunk($x >> 4, $z >> 4)) !== null){ - $chunk->setBlock($x & 0xf, $y & 0xf, $z & 0xf, $id, $data); + $chunk->setBlock($x & 0xf, $y, $z & 0xf, $id, $data); } }