Use the correct DataVersion numbers to choose the chunk-compatibillity

This commit is contained in:
Blue (Lukas Rieger) 2020-09-19 19:53:03 +02:00
parent d9a2f98481
commit 5784491feb

View File

@ -84,9 +84,9 @@ public int getDataVersion() {
public static Chunk create(MCAWorld world, CompoundTag chunkTag, boolean ignoreMissingLightData) throws IOException {
int version = chunkTag.getInt("DataVersion");
if (version <= 1343) return new ChunkAnvil112(world, chunkTag, ignoreMissingLightData);
if (version <= 1976) return new ChunkAnvil113(world, chunkTag, ignoreMissingLightData);
if (version < 2534) return new ChunkAnvil115(world, chunkTag, ignoreMissingLightData);
if (version < 1400) return new ChunkAnvil112(world, chunkTag, ignoreMissingLightData);
if (version < 2200) return new ChunkAnvil113(world, chunkTag, ignoreMissingLightData);
if (version < 2500) return new ChunkAnvil115(world, chunkTag, ignoreMissingLightData);
return new ChunkAnvil116(world, chunkTag, ignoreMissingLightData);
}