From e80bb1f60581e9e34d12e07d5c2196073735fea6 Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Sat, 11 Apr 2020 22:35:54 +0200 Subject: [PATCH] Use
instead of / as hologram line separator --- .../java/de/erethon/dungeonsxl/sign/passive/HologramSign.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/de/erethon/dungeonsxl/sign/passive/HologramSign.java b/core/src/main/java/de/erethon/dungeonsxl/sign/passive/HologramSign.java index 00bc38ff..73227496 100644 --- a/core/src/main/java/de/erethon/dungeonsxl/sign/passive/HologramSign.java +++ b/core/src/main/java/de/erethon/dungeonsxl/sign/passive/HologramSign.java @@ -83,9 +83,9 @@ public class HologramSign extends Passive { markAsErroneous("Unknown message, ID: " + getLine(1)); return; } - String[] holoLines = text.split("/"); + String[] holoLines = text.split("(?i)
"); Location location = getSign().getLocation(); - location = location.add(0.5, NumberUtil.parseDouble(getLine(2)), 0.5); + location = location.add(0.5, NumberUtil.parseDouble(getLine(2), 2.0), 0.5); hologram = HologramsAPI.createHologram(api, location); for (String line : holoLines) {