Support old, corrupt, schematics

This commit is contained in:
dordsor21
2021-09-24 16:41:09 +01:00
parent 4e944052cd
commit 6b5f21d67b
2 changed files with 13 additions and 1 deletions

View File

@ -258,6 +258,15 @@ public class SpongeSchematicReader extends NBTSchematicReader {
values.put("x", new IntTag(pt.getBlockX()));
values.put("y", new IntTag(pt.getBlockY()));
values.put("z", new IntTag(pt.getBlockZ()));
//FAWE start - support old, corrupt schematics
Tag id = values.get("Id");
if (id == null) {
id = values.get("id");
}
if (id == null) {
continue;
}
//FAWE end
values.put("id", values.get("Id"));
values.remove("Id");
values.remove("Pos");