diff --git a/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt b/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt index 3e4ac64..cf9dc29 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/config/ConfigScreen.kt @@ -20,13 +20,14 @@ val SnowyConfigScreen: Screen get() { .setShouldListSmoothScroll(true) .setTitle(translationComponent).apply { with(entryBuilder()) { - getOrCreateCategory(TranslatableComponent("$confPrefix.general")).addEntry( - startBooleanToggle(Component.nullToEmpty("Risky Cheats"), riskyCheatsEnabled) - .requireRestart() - .setSaveConsumer { - riskyCheatsEnabled = it - }.build() - ).addEntry(startSubCategory(TranslatableComponent("$confPrefix.behavior")).build()) + getOrCreateCategory(TranslatableComponent("$confPrefix.general")).addEntry(startSubCategory(TranslatableComponent("$confPrefix.behavior")).build()) + .addEntry( + startBooleanToggle(Component.nullToEmpty("Risky Cheats"), riskyCheatsEnabled) + .requireRestart() + .setSaveConsumer { + riskyCheatsEnabled = it + }.build() + ) } }.build() } catch (e: ClassNotFoundException) {