diff --git a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/storage/Compression.java b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/storage/Compression.java index af3204bd..8505bd72 100644 --- a/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/storage/Compression.java +++ b/BlueMapCore/src/main/java/de/bluecolored/bluemap/core/storage/Compression.java @@ -26,8 +26,8 @@ import io.airlift.compress.zstd.ZstdInputStream; import io.airlift.compress.zstd.ZstdOutputStream; -import net.jpountz.lz4.LZ4FrameInputStream; -import net.jpountz.lz4.LZ4FrameOutputStream; +import net.jpountz.lz4.LZ4BlockInputStream; +import net.jpountz.lz4.LZ4BlockOutputStream; import java.io.IOException; import java.io.InputStream; @@ -44,7 +44,7 @@ public enum Compression { GZIP("gzip", ".gz", GZIPOutputStream::new, GZIPInputStream::new), DEFLATE("deflate", ".deflate", DeflaterOutputStream::new, DeflaterInputStream::new), ZSTD("zstd", ".zst", ZstdOutputStream::new, ZstdInputStream::new), - LZ4("lz4", ".lz4", LZ4FrameOutputStream::new, LZ4FrameInputStream::new); + LZ4("lz4", ".lz4", LZ4BlockOutputStream::new, LZ4BlockInputStream::new); private final String typeId; private final String fileSuffix;