Fix loading blocks from sections with large block ids in 1.12

This commit is contained in:
Blue (Lukas Rieger) 2019-11-24 10:20:59 +01:00
parent 12f577ef41
commit e5df42faa3

View File

@ -130,7 +130,7 @@ public BlockState getBlockState(Vector3i pos) {
int blockId = this.blocks[blockByteIndex] & 0xFF;
if (this.add.length > 0) {
blockId = blockId & (getByteHalf(this.add[blockHalfByteIndex], largeHalf) << 8);
blockId = blockId | (getByteHalf(this.add[blockHalfByteIndex], largeHalf) << 8);
}
int blockData = getByteHalf(this.data[blockHalfByteIndex], largeHalf);