diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d217ba..c4f7ee7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 12.1.2 +- Fixed newlines ("\n") in config.yml breaking the config updater + ## 12.1.1 - ChestSort will no longer move any shulkerboxes in the inventory around if this shulkerbox is currently open in ShulkerPacks diff --git a/pom.xml b/pom.xml index 74fbdd8..bb66a26 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ ChestSort https://www.chestsort.de Allows automatic chest sorting! - 12.1.1 + 12.1.2 jar diff --git a/src/main/java/de/jeff_media/chestsort/config/ConfigUpdater.java b/src/main/java/de/jeff_media/chestsort/config/ConfigUpdater.java index 9c62e87..0700635 100644 --- a/src/main/java/de/jeff_media/chestsort/config/ConfigUpdater.java +++ b/src/main/java/de/jeff_media/chestsort/config/ConfigUpdater.java @@ -221,9 +221,9 @@ public final class ConfigUpdater { String value = main.getConfig().get(node).toString(); // The hologram text needs special escaping for the newline symbols - if (node.equals("hologram-text")) { + //if (node.equals("hologram-text")) { value = value.replaceAll("\n", "\\\\n"); - } + //} updatedLine = node + ": " + quotes + value + quotes; }