Fix a problem with the loading of cells when no signs.
This commit is contained in:
parent
5f6807fc24
commit
9f9ede433a
@ -389,12 +389,16 @@ public class JailIO {
|
|||||||
|
|
||||||
c.setChestLocation(new Location(j.getWorld(), set.getInt("chest.x"), set.getInt("chest.y"), set.getInt("chest.z")));
|
c.setChestLocation(new Location(j.getWorld(), set.getInt("chest.x"), set.getInt("chest.y"), set.getInt("chest.z")));
|
||||||
|
|
||||||
String[] signs = set.getString("signs").split(";");
|
String cSigns = set.getString("signs");
|
||||||
for(String s : signs) {
|
if(!cSigns.isEmpty()) {
|
||||||
String[] co = s.split(",");
|
String[] signs = cSigns.split(";");
|
||||||
c.addSign(new SimpleLocation(co[0], co[1], co[2], co[4]));
|
for(String s : signs) {
|
||||||
|
String[] co = s.split(",");
|
||||||
|
c.addSign(new SimpleLocation(co[0], co[1], co[2], co[3]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
j.addCell(c, false);
|
j.addCell(c, false);
|
||||||
cs++;
|
cs++;
|
||||||
}else {
|
}else {
|
||||||
|
Loading…
Reference in New Issue
Block a user