mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-06 16:37:38 +01:00
Fix block index computation
This commit is contained in:
parent
5f2b3df20e
commit
a641c2415a
@ -228,7 +228,7 @@ public final class ChunkUtils {
|
||||
z = z % Chunk.CHUNK_SIZE_Z;
|
||||
|
||||
int index = x & 0xF; // 4 bits
|
||||
index |= (y << 24) & 0x0FFFFFF0; // 24 bits
|
||||
index |= (y << 4) & 0x0FFFFFF0; // 24 bits
|
||||
index |= (z << 28) & 0xF0000000; // 4 bits
|
||||
return index;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user