mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-01-09 01:17:36 +00:00
patch for missing tile position data
This commit is contained in:
parent
2c76c23bf2
commit
b3e11d2094
@ -183,9 +183,20 @@ public class SpongeSchematicReader extends NBTSchematicReader {
|
||||
setupClipboard(0, uuid);
|
||||
}
|
||||
int[] pos = value.getIntArray("Pos");
|
||||
int x = pos[0];
|
||||
int y = pos[1];
|
||||
int z = pos[2];
|
||||
int x,y,z;
|
||||
if (pos == null) {
|
||||
System.out.println("Invalid tile " + value);
|
||||
if (!value.containsKey("x") || !value.containsKey("y") || !value.containsKey("z")) {
|
||||
return;
|
||||
}
|
||||
x = value.getInt("x");
|
||||
y = value.getInt("y");
|
||||
z = value.getInt("z");
|
||||
} else {
|
||||
x = pos[0];
|
||||
y = pos[1];
|
||||
z = pos[2];
|
||||
}
|
||||
fc.setTile(x, y, z, value);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user