From 05c220ec3bb69fe117c387a0df1b0a473c8dd7fe Mon Sep 17 00:00:00 2001 From: "Lukas Rieger (Blue)" Date: Wed, 15 May 2024 01:18:53 +0200 Subject: [PATCH] Maybe also use the same lz4 compression type minecraft uses --- .../de/bluecolored/bluemap/core/storage/Compression.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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;