diff --git a/core/src/main/java/de/erethon/dungeonsxl/sign/button/TitleSign.java b/core/src/main/java/de/erethon/dungeonsxl/sign/button/TitleSign.java index 34eba5de..66496b77 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/sign/button/TitleSign.java +++ b/core/src/main/java/de/erethon/dungeonsxl/sign/button/TitleSign.java @@ -50,16 +50,18 @@ public class TitleSign extends MessageSign { @Override public void initialize() { - super.initialize(); - - String[] line1 = text.split(","); + String[] line1 = getLine(1).split(","); Map messages = getGameWorld().getDungeon().getRules().getState(GameRule.MESSAGES); int id0 = NumberUtil.parseInt(line1[0], -1); - title = id0 != -1 ? messages.get(id0) : ""; + title = messages.get(id0); + if (title == null) { + title = ""; + } if (line1.length > 1) { int id1 = NumberUtil.parseInt(line1[1], -1); - subtitle = id1 != -1 ? messages.get(id1) : ""; - } else { + subtitle = messages.get(id1); + } + if (subtitle == null) { subtitle = ""; }