Make the "behavior" sub-category the first element of the first element of the general category in the cloth configuration screen
This commit is contained in:
parent
8c768fadef
commit
8b195db319
|
@ -20,13 +20,14 @@ val SnowyConfigScreen: Screen get() {
|
||||||
.setShouldListSmoothScroll(true)
|
.setShouldListSmoothScroll(true)
|
||||||
.setTitle(translationComponent).apply {
|
.setTitle(translationComponent).apply {
|
||||||
with(entryBuilder()) {
|
with(entryBuilder()) {
|
||||||
getOrCreateCategory(TranslatableComponent("$confPrefix.general")).addEntry(
|
getOrCreateCategory(TranslatableComponent("$confPrefix.general")).addEntry(startSubCategory(TranslatableComponent("$confPrefix.behavior")).build())
|
||||||
startBooleanToggle(Component.nullToEmpty("Risky Cheats"), riskyCheatsEnabled)
|
.addEntry(
|
||||||
.requireRestart()
|
startBooleanToggle(Component.nullToEmpty("Risky Cheats"), riskyCheatsEnabled)
|
||||||
.setSaveConsumer {
|
.requireRestart()
|
||||||
riskyCheatsEnabled = it
|
.setSaveConsumer {
|
||||||
}.build()
|
riskyCheatsEnabled = it
|
||||||
).addEntry(startSubCategory(TranslatableComponent("$confPrefix.behavior")).build())
|
}.build()
|
||||||
|
)
|
||||||
}
|
}
|
||||||
}.build()
|
}.build()
|
||||||
} catch (e: ClassNotFoundException) {
|
} catch (e: ClassNotFoundException) {
|
||||||
|
|
Loading…
Reference in New Issue