mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-02-17 21:02:12 +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 {
|
} else {
|
||||||
id = NumberUtil.parseInt(getSign().getLine(1));
|
id = NumberUtil.parseInt(getLine(1));
|
||||||
if (id == 0 || used.contains(id)) {
|
if (id == 0 || used.contains(id)) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
@ -107,8 +107,8 @@ public class InteractSign extends Passive {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getSign().setLine(0, ChatColor.DARK_BLUE + "############");
|
getSign().setLine(0, ChatColor.DARK_BLUE + "############");
|
||||||
getSign().setLine(1, ChatColor.GREEN + getSign().getLine(2));
|
getSign().setLine(1, ChatColor.GREEN + getLine(2));
|
||||||
getSign().setLine(2, ChatColor.GREEN + getSign().getLine(3));
|
getSign().setLine(2, ChatColor.GREEN + getLine(3));
|
||||||
getSign().setLine(3, ChatColor.DARK_BLUE + "############");
|
getSign().setLine(3, ChatColor.DARK_BLUE + "############");
|
||||||
getSign().update();
|
getSign().update();
|
||||||
}
|
}
|
||||||
|
@ -82,7 +82,7 @@ public class TriggerSign extends Rocker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
id = NumberUtil.parseInt(getSign().getLine(1));
|
id = NumberUtil.parseInt(getLine(1));
|
||||||
if (id == 0 || used.contains(id)) {
|
if (id == 0 || used.contains(id)) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user