mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-15 18:29:46 +00:00
SimpleChunkManager: fix missing mask in getBlockAt()
This commit is contained in:
parent
40f9cd16cb
commit
8ee70dc30a
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user