mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-18 00:25:21 +01:00
Fix dungeon sign change event; resolves #1004
This commit is contained in:
parent
39bd207302
commit
05af27a52d
@ -80,7 +80,7 @@ public class DSignListener implements Listener {
|
||||
@EventHandler
|
||||
public void onSignChange(SignChangeEvent event) {
|
||||
String[] lines = event.getLines();
|
||||
if (lines.length < 3 || !lines[0].startsWith("[")) {
|
||||
if (lines[0].length() < 3 || !lines[0].startsWith("[")) {
|
||||
return;
|
||||
}
|
||||
Player player = event.getPlayer();
|
||||
@ -96,9 +96,6 @@ public class DSignListener implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
if (sign == null) {
|
||||
return;
|
||||
}
|
||||
// Override sign plugins color codes etc.
|
||||
sign.setLine(0, lines[0]);
|
||||
sign.setLine(1, lines[1]);
|
||||
|
Loading…
Reference in New Issue
Block a user