Fix loading blocks from sections with large block ids in 1.12
This commit is contained in:
parent
12f577ef41
commit
e5df42faa3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue