Fix the upper half of each chunk behaving strangely.
@@ -275,7 +275,7 @@ private void notifyExtraDataChanged(int index, Vector3ic pos, int newData, int o
public Block getBlock(int x, int y, int z) {
CoreChunk chunk = chunkProvider.getChunk(Chunks.toChunkPos(x, y, z, new Vector3i()));
if (chunk != null) {
- return chunk.getBlock(Chunks.toRelativeX(x), Chunks.toRelativeX(y), Chunks.toRelativeX(z));
+ return chunk.getBlock(Chunks.toRelativeX(x), Chunks.toRelativeY(y), Chunks.toRelativeZ(z));
}
return unloadedBlock;
}
