From 83b81bcca67123943a22eaecfd64088cfd7903c7 Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Fri, 7 Jul 2023 13:15:17 +0200 Subject: [PATCH] Add support for c2me-uncompressed chunks --- .../de/bluecolored/bluemap/core/mca/region/MCARegion.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/region/MCARegion.java b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/region/MCARegion.java index 72be917e..202ea0d1 100644 --- a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/region/MCARegion.java +++ b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/mca/region/MCARegion.java @@ -87,7 +87,9 @@ public Chunk loadChunk(int chunkX, int chunkZ, boolean ignoreMissingLightData) t raf.seek(offset + 4); // +4 skip chunk size byte compressionTypeByte = raf.readByte(); - CompressionType compressionType = CompressionType.getFromID(compressionTypeByte); + CompressionType compressionType = compressionTypeByte == 3 ? + CompressionType.NONE : + CompressionType.getFromID(compressionTypeByte); if (compressionType == null) { throw new IOException("Invalid compression type " + compressionTypeByte); }