From 12292270511d5d37e9c21307fb1e09d400ae1ff4 Mon Sep 17 00:00:00 2001 From: nea Date: Wed, 6 Sep 2023 02:35:06 +0200 Subject: Add ability to remove item groupings Item groups prevent batch rendering from being effective, thereby reducing performance. --- src/main/kotlin/moe/nea/firmament/gui/config/ManagedConfig.kt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/kotlin/moe/nea/firmament/gui') 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 } } -- cgit