From dce9e545ec0059f9002a4947a6ffced07d0965fc Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 5 Jan 2020 18:41:58 +1100 Subject: [PATCH] Fix schem load byte/varint --- .../worldedit/extent/clipboard/io/FastSchematicReader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/FastSchematicReader.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/FastSchematicReader.java index 96ca59e05..a2215234e 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/FastSchematicReader.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/FastSchematicReader.java @@ -145,7 +145,7 @@ public class FastSchematicReader extends NBTSchematicReader { blocksOut = new FastByteArrayOutputStream(); blocks = new FaweOutputStream(new LZ4BlockOutputStream(blocksOut)); }); - blockData.withInt((index, value) -> blocks.writeVarInt(value)); + blockData.withInt((index, value) -> blocks.write(value)); StreamDelegate tilesDelegate = schematic.add("TileEntities"); tilesDelegate.withInfo((length, type) -> tiles = new ArrayList<>(length)); tilesDelegate.withElem((ValueReader>) (index, tile) -> tiles.add(tile));