Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 19:02:36 +01:00
Support old, corrupt, schematics
Dieser Commit ist enthalten in:
Ursprung
4e944052cd
Commit
6b5f21d67b
@ -71,7 +71,6 @@ public class FastSchematicReader extends NBTSchematicReader {
|
|||||||
|
|
||||||
private List<Map<String, Object>> tiles;
|
private List<Map<String, Object>> tiles;
|
||||||
private List<Map<String, Object>> entities;
|
private List<Map<String, Object>> entities;
|
||||||
|
|
||||||
private int width;
|
private int width;
|
||||||
private int height;
|
private int height;
|
||||||
private int length;
|
private int length;
|
||||||
@ -339,6 +338,10 @@ public class FastSchematicReader extends NBTSchematicReader {
|
|||||||
values.put("y", new IntTag(y));
|
values.put("y", new IntTag(y));
|
||||||
values.put("z", new IntTag(z));
|
values.put("z", new IntTag(z));
|
||||||
values.put("id", id);
|
values.put("id", id);
|
||||||
|
} else if (values.get("id") != null) {
|
||||||
|
values.put("x", new IntTag(x));
|
||||||
|
values.put("y", new IntTag(y));
|
||||||
|
values.put("z", new IntTag(z));
|
||||||
}
|
}
|
||||||
values.remove("Id");
|
values.remove("Id");
|
||||||
values.remove("Pos");
|
values.remove("Pos");
|
||||||
|
@ -258,6 +258,15 @@ public class SpongeSchematicReader extends NBTSchematicReader {
|
|||||||
values.put("x", new IntTag(pt.getBlockX()));
|
values.put("x", new IntTag(pt.getBlockX()));
|
||||||
values.put("y", new IntTag(pt.getBlockY()));
|
values.put("y", new IntTag(pt.getBlockY()));
|
||||||
values.put("z", new IntTag(pt.getBlockZ()));
|
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.put("id", values.get("Id"));
|
||||||
values.remove("Id");
|
values.remove("Id");
|
||||||
values.remove("Pos");
|
values.remove("Pos");
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren