This commit is contained in:
mfnalex 2021-12-09 19:32:26 +01:00
parent 3563a827f7
commit 38fe08248a
3 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,8 @@
# Changelog # Changelog
## 12.1.2
- Fixed newlines ("\n") in config.yml breaking the config updater
## 12.1.1 ## 12.1.1
- ChestSort will no longer move any shulkerboxes in the inventory around if this shulkerbox is currently open in ShulkerPacks - ChestSort will no longer move any shulkerboxes in the inventory around if this shulkerbox is currently open in ShulkerPacks

View File

@ -9,7 +9,7 @@
<name>ChestSort</name> <name>ChestSort</name>
<url>https://www.chestsort.de</url> <url>https://www.chestsort.de</url>
<description>Allows automatic chest sorting!</description> <description>Allows automatic chest sorting!</description>
<version>12.1.1</version> <version>12.1.2</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<properties> <properties>

View File

@ -221,9 +221,9 @@ public final class ConfigUpdater {
String value = main.getConfig().get(node).toString(); String value = main.getConfig().get(node).toString();
// The hologram text needs special escaping for the newline symbols // 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"); value = value.replaceAll("\n", "\\\\n");
} //}
updatedLine = node + ": " + quotes + value + quotes; updatedLine = node + ": " + quotes + value + quotes;
} }