mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
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)
This commit is contained in:
parent
da4d70fab5
commit
36ef78779d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user