Add ability to remove item groupings

Item groups prevent batch rendering from being effective, thereby reducing performance.
This commit is contained in:
nea
2023-09-06 02:35:06 +02:00
parent d29f886e25
commit 1229227051
4 changed files with 32 additions and 16 deletions

View File

@@ -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
}
}