From 22be697751960c9d8167a67fdd80ae57897b8c42 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 1 Oct 2017 14:01:51 +1100 Subject: [PATCH] Fix saving lazy copy clipboard --- .../worldedit/extent/clipboard/io/SchematicWriter.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SchematicWriter.java b/core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SchematicWriter.java index 3bf52665..0765951f 100644 --- a/core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SchematicWriter.java +++ b/core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SchematicWriter.java @@ -6,6 +6,7 @@ import com.boydti.fawe.jnbt.NBTStreamer; import com.boydti.fawe.object.clipboard.FaweClipboard; import com.boydti.fawe.object.clipboard.WorldCopyClipboard; import com.boydti.fawe.object.io.FastByteArrayOutputStream; +import com.boydti.fawe.object.io.PGZIPOutputStream; import com.boydti.fawe.util.ReflectionUtils; import com.google.common.io.ByteStreams; import com.sk89q.jnbt.ByteArrayTag; @@ -167,9 +168,9 @@ public class SchematicWriter implements ClipboardWriter { FastByteArrayOutputStream datas = new FastByteArrayOutputStream(); FastByteArrayOutputStream add = new FastByteArrayOutputStream(); - OutputStream idsOut = ids;//new PGZIPOutputStream(ids); - OutputStream dataOut = datas;//new PGZIPOutputStream(datas); - OutputStream addOut = add;//new PGZIPOutputStream(add); + OutputStream idsOut = new PGZIPOutputStream(ids); + OutputStream dataOut = new PGZIPOutputStream(datas); + OutputStream addOut = new PGZIPOutputStream(add); byte[] addAcc = new byte[1];