aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-06-12 03:11:06 +0200
committernea <nea@nea.moe>2023-06-12 03:11:06 +0200
commitcd87be6cb3af335b90fe1c92e71bd3e980f3a310 (patch)
treed1afa2413aa604cfe42e07a42ffddfd298229be1
parent9508bcc851c736d807ae912e0e5b33e2654b46cc (diff)
downloadfirmament-cd87be6cb3af335b90fe1c92e71bd3e980f3a310.tar.gz
firmament-cd87be6cb3af335b90fe1c92e71bd3e980f3a310.tar.bz2
firmament-cd87be6cb3af335b90fe1c92e71bd3e980f3a310.zip
Fix repo settings being saved wrong
-rw-r--r--URGENT.txt1
-rw-r--r--src/main/kotlin/moe/nea/firmament/gui/config/StringHandler.kt2
2 files changed, 1 insertions, 2 deletions
diff --git a/URGENT.txt b/URGENT.txt
index 6bf6009..ce90300 100644
--- a/URGENT.txt
+++ b/URGENT.txt
@@ -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) {