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
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class ChunkAnvil112 extends Chunk {
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);