From 1b71bcd4a162287cc8a9f6a0e25f1f16f4607037 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Tue, 14 Mar 2017 08:40:12 +1100 Subject: [PATCH] Always write tile tag --- .../sk89q/worldedit/extent/clipboard/io/SchematicWriter.java | 2 ++ 1 file changed, 2 insertions(+) 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 babdc1e1..e1631203 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 @@ -216,6 +216,8 @@ public class SchematicWriter implements ClipboardWriter { if (hasTile) { final List tileEntities = clipboard.IMP.getTileEntities(); out.writeNamedTag("TileEntities", new ListTag(CompoundTag.class, tileEntities)); + } else { + out.writeNamedTag("TileEntities", new ListTag(CompoundTag.class, new ArrayList())); } List entities = new ArrayList();