mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Better script sign support
This commit is contained in:
parent
0a3d559b39
commit
d3e32f5893
@ -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();
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user