diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/gui')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/gui/config/ManagedConfig.kt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/gui/config/ManagedConfig.kt b/src/main/kotlin/moe/nea/firmament/gui/config/ManagedConfig.kt index 8e05632..d2c4d69 100644 --- a/src/main/kotlin/moe/nea/firmament/gui/config/ManagedConfig.kt +++ b/src/main/kotlin/moe/nea/firmament/gui/config/ManagedConfig.kt @@ -158,6 +158,7 @@ abstract class ManagedConfig(override val name: String) : ManagedConfigElement() it.add(WButton(Text.literal("←")).also { it.setOnClick { if (parent != null) { + save() setScreenLater(parent) } else { AllConfigsGui.showAllGuis() @@ -182,6 +183,7 @@ abstract class ManagedConfig(override val name: String) : ManagedConfigElement() override fun close() { latestGuiAppender = null + save() MC.screen = parent } } |