Fix repo settings being saved wrong

This commit is contained in:
nea
2023-06-12 03:11:06 +02:00
parent 9508bcc851
commit cd87be6cb3
2 changed files with 1 additions and 2 deletions

View File

@@ -6,4 +6,3 @@
- Add other recipe types (prio -1)
- Fix banner data fixer (prio -1)

View File

@@ -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) {