Read 1.8 chunk block id as unsigned (#3578)

This commit is contained in:
Valaphee The Meerkat 2023-12-22 10:22:22 +01:00 committed by GitHub
parent 9b1716b662
commit 18f2cf25cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ public class ChunkSectionType1_8 extends Type<ChunkSection> {
ByteBuf littleEndianView = buffer.order(ByteOrder.LITTLE_ENDIAN);
for (int idx = 0; idx < ChunkSection.SIZE; idx++) {
blocks.setIdAt(idx, littleEndianView.readShort());
blocks.setIdAt(idx, littleEndianView.readUnsignedShort());
}
return chunkSection;