Fixed Chunk tile indexes

This commit is contained in:
Shoghi Cervantes
2014-11-08 15:00:18 +01:00
parent 0128a7aeb2
commit 1a5544f68c
2 changed files with 4 additions and 4 deletions

View File

@ -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;