mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Fixed Chunk tile indexes
This commit is contained in:
@ -1369,7 +1369,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
$chunk = $this->getChunk($pos->x >> 4, $pos->z >> 4);
|
||||
|
||||
if($chunk instanceof FullChunk){
|
||||
return $chunk->getTile($pos->x & 0x0f, $pos->y & 0x7f, $pos->z & 0x0f);
|
||||
return $chunk->getTile($pos->x & 0x0f, $pos->y & 0xff, $pos->z & 0x0f);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user