diff options
author | nea <nea@nea.moe> | 2023-06-12 03:11:06 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-06-12 03:11:06 +0200 |
commit | cd87be6cb3af335b90fe1c92e71bd3e980f3a310 (patch) | |
tree | d1afa2413aa604cfe42e07a42ffddfd298229be1 | |
parent | 9508bcc851c736d807ae912e0e5b33e2654b46cc (diff) | |
download | firmament-cd87be6cb3af335b90fe1c92e71bd3e980f3a310.tar.gz firmament-cd87be6cb3af335b90fe1c92e71bd3e980f3a310.tar.bz2 firmament-cd87be6cb3af335b90fe1c92e71bd3e980f3a310.zip |
Fix repo settings being saved wrong
-rw-r--r-- | URGENT.txt | 1 | ||||
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -6,4 +6,3 @@ - Add other recipe types (prio -1) - Fix banner data fixer (prio -1) - diff --git a/src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt b/src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt index e090db7..84d24b5 100644 --- a/src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt +++ b/src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt @@ -31,7 +31,7 @@ class StringHandler(val config: ManagedConfig) : ManagedConfig.OptionHandler<Str } override fun fromJson(element: JsonElement): String { - return element.jsonPrimitive.toString() + return element.jsonPrimitive.content } override fun emitGuiElements(opt: ManagedConfig.Option<String>, guiAppender: GuiAppender) { |