From 36ef78779d84edaca193fbefc534f8b84a19ea15 Mon Sep 17 00:00:00 2001 From: Octavia Togami Date: Tue, 21 Jul 2020 19:03:58 -0700 Subject: [PATCH] Drop requirement for root tag to be named Sponge does not name the root tag, this allows us to almost load their schematics (except for a bug https://github.com/SpongePowered/SpongeCommon/pull/3085) --- .../worldedit/extent/clipboard/io/SpongeSchematicReader.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicReader.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicReader.java index 6cfa6474c..7e338b75b 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicReader.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/clipboard/io/SpongeSchematicReader.java @@ -149,9 +149,6 @@ public OptionalInt getDataVersion() { private CompoundTag getBaseTag() throws IOException { NamedTag rootTag = inputStream.readNamedTag(); - if (!rootTag.getName().equals("Schematic")) { - throw new IOException("Tag 'Schematic' does not exist or is not first"); - } CompoundTag schematicTag = (CompoundTag) rootTag.getTag(); // Check