Fix a problem with the loading of cells when no signs.
This commit is contained in:
parent
5f6807fc24
commit
9f9ede433a
@ -389,11 +389,15 @@ public class JailIO {
|
||||
|
||||
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");
|
||||
if(!cSigns.isEmpty()) {
|
||||
String[] signs = cSigns.split(";");
|
||||
for(String s : signs) {
|
||||
String[] co = s.split(",");
|
||||
c.addSign(new SimpleLocation(co[0], co[1], co[2], co[4]));
|
||||
c.addSign(new SimpleLocation(co[0], co[1], co[2], co[3]));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
j.addCell(c, false);
|
||||
cs++;
|
||||
|
Loading…
Reference in New Issue
Block a user