diff --git a/src/main/java/world/bentobox/challenges/utils/GuiUtils.java b/src/main/java/world/bentobox/challenges/utils/GuiUtils.java index 737f735..89ad053 100644 --- a/src/main/java/world/bentobox/challenges/utils/GuiUtils.java +++ b/src/main/java/world/bentobox/challenges/utils/GuiUtils.java @@ -381,7 +381,7 @@ public class GuiUtils List result = new ArrayList<>(); Arrays.stream(string.split("\\|")). - map(line -> Arrays.asList(WordUtils.wrap(line, 25).split("\\r\\n"))). + map(line -> Arrays.asList(WordUtils.wrap(line, 25).split(System.getProperty("line.separator")))). forEach(result::addAll); return result;