Better script sign support

This commit is contained in:
Daniel Saukel 2020-03-20 18:44:26 +01:00
parent 0a3d559b39
commit d3e32f5893
2 changed files with 4 additions and 4 deletions

View File

@ -83,7 +83,7 @@ public class InteractSign extends Passive {
}
} else {
id = NumberUtil.parseInt(getSign().getLine(1));
id = NumberUtil.parseInt(getLine(1));
if (id == 0 || used.contains(id)) {
return false;
} else {
@ -107,8 +107,8 @@ public class InteractSign extends Passive {
}
getSign().setLine(0, ChatColor.DARK_BLUE + "############");
getSign().setLine(1, ChatColor.GREEN + getSign().getLine(2));
getSign().setLine(2, ChatColor.GREEN + getSign().getLine(3));
getSign().setLine(1, ChatColor.GREEN + getLine(2));
getSign().setLine(2, ChatColor.GREEN + getLine(3));
getSign().setLine(3, ChatColor.DARK_BLUE + "############");
getSign().update();
}

View File

@ -82,7 +82,7 @@ public class TriggerSign extends Rocker {
}
} else {
id = NumberUtil.parseInt(getSign().getLine(1));
id = NumberUtil.parseInt(getLine(1));
if (id == 0 || used.contains(id)) {
return false;
} else {