From d960574b24663e2be134aea7e240ee7e73378e31 Mon Sep 17 00:00:00 2001 From: RePixelatedMC Date: Thu, 28 Dec 2023 14:41:16 +0100 Subject: [PATCH] Ah yes --- .../volmit/iris/util/mantle/TectonicPlate.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/src/main/java/com/volmit/iris/util/mantle/TectonicPlate.java b/core/src/main/java/com/volmit/iris/util/mantle/TectonicPlate.java index edc47ac00..6f3cd0f35 100644 --- a/core/src/main/java/com/volmit/iris/util/mantle/TectonicPlate.java +++ b/core/src/main/java/com/volmit/iris/util/mantle/TectonicPlate.java @@ -84,12 +84,12 @@ public class TectonicPlate { public static TectonicPlate read(int worldHeight, File file) throws IOException, ClassNotFoundException { FileInputStream fin = new FileInputStream(file); DataInputStream din; - if (file.getName().endsWith("ttp.lz4")) { - GZIPInputStream gzi = new GZIPInputStream(fin); - din = new DataInputStream(gzi); - } else { + if (file.getName().endsWith("ttp.lz4b")) { LZ4BlockInputStream lz4 = new LZ4BlockInputStream(fin); din = new DataInputStream(lz4); + } else { + GZIPInputStream gzi = new GZIPInputStream(fin); + din = new DataInputStream(gzi); } TectonicPlate p = new TectonicPlate(worldHeight, din); din.close(); @@ -175,12 +175,12 @@ public class TectonicPlate { PrecisionStopwatch p = PrecisionStopwatch.start(); FileOutputStream fos = new FileOutputStream(file); DataOutputStream dos; - if (file.getName().endsWith("ttp")) { - GZIPOutputStream gzo = new GZIPOutputStream(fos); - dos = new DataOutputStream(gzo); - } else { + if (file.getName().endsWith("ttp.lz4b")) { LZ4BlockOutputStream lz4 = new LZ4BlockOutputStream(fos); dos = new DataOutputStream(lz4); + } else { + GZIPOutputStream gzo = new GZIPOutputStream(fos); + dos = new DataOutputStream(gzo); } write(dos); dos.close();