From 8ee70dc30aa567e67b5dca533c76e2dea73f2eda Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sat, 31 Oct 2020 22:55:56 +0000 Subject: [PATCH] SimpleChunkManager: fix missing mask in getBlockAt() --- src/world/SimpleChunkManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/SimpleChunkManager.php b/src/world/SimpleChunkManager.php index 17325ad0f..1eb6ef17b 100644 --- a/src/world/SimpleChunkManager.php +++ b/src/world/SimpleChunkManager.php @@ -46,7 +46,7 @@ class SimpleChunkManager implements ChunkManager{ public function getBlockAt(int $x, int $y, int $z) : Block{ if(($chunk = $this->getChunk($x >> 4, $z >> 4)) !== null){ - return BlockFactory::getInstance()->fromFullBlock($chunk->getFullBlock($x & 0xf, $y, $z)); + return BlockFactory::getInstance()->fromFullBlock($chunk->getFullBlock($x & 0xf, $y, $z & 0xf)); } return VanillaBlocks::AIR(); }