mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-26 04:25:31 +01:00
Use the correct DataVersion numbers to choose the chunk-compatibillity
This commit is contained in:
parent
d9a2f98481
commit
5784491feb
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user