mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 09:47:38 +00:00
check length, not null
This commit is contained in:
parent
b3e11d2094
commit
75f059fdc5
@ -184,7 +184,7 @@ public class SpongeSchematicReader extends NBTSchematicReader {
|
|||||||
}
|
}
|
||||||
int[] pos = value.getIntArray("Pos");
|
int[] pos = value.getIntArray("Pos");
|
||||||
int x,y,z;
|
int x,y,z;
|
||||||
if (pos == null) {
|
if (pos.length != 3) {
|
||||||
System.out.println("Invalid tile " + value);
|
System.out.println("Invalid tile " + value);
|
||||||
if (!value.containsKey("x") || !value.containsKey("y") || !value.containsKey("z")) {
|
if (!value.containsKey("x") || !value.containsKey("y") || !value.containsKey("z")) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user