9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-19 15:09:18 +00:00

fix deserialisation of unversioned mantle plates

This commit is contained in:
Julian Krings
2025-10-01 12:57:38 +02:00
parent 9d796bd2a0
commit 867686eced

View File

@@ -84,7 +84,7 @@ public class MantleChunk {
public MantleChunk(int version, int sectionHeight, CountingDataInputStream din) throws IOException { public MantleChunk(int version, int sectionHeight, CountingDataInputStream din) throws IOException {
this(sectionHeight, din.readByte(), din.readByte()); this(sectionHeight, din.readByte(), din.readByte());
int s = din.readByte(); int s = din.readByte();
int l = version < 0 ? MantleFlag.RESERVED_FLAGS : Varint.readUnsignedVarInt(din); int l = version < 0 ? 16 : Varint.readUnsignedVarInt(din);
if (version >= 1) { if (version >= 1) {
for (int i = 0; i < l;) { for (int i = 0; i < l;) {