From 38fe08248a4588c3082a9f78d4668b4aeb9fc2c7 Mon Sep 17 00:00:00 2001
From: mfnalex <1122571+mfnalex@users.noreply.github.com>
Date: Thu, 9 Dec 2021 19:32:26 +0100
Subject: [PATCH] 12.1.2
---
CHANGELOG.md | 3 +++
pom.xml | 2 +-
.../java/de/jeff_media/chestsort/config/ConfigUpdater.java | 4 ++--
3 files changed, 6 insertions(+), 3 deletions(-)
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;
}