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:
Octavia Togami 2020-07-21 19:03:58 -07:00
parent da4d70fab5
commit 36ef78779d
No known key found for this signature in database
GPG Key ID: CC364524D1983C99

View File

@ -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