diff options
author | nea <nea@nea.moe> | 2023-03-29 13:54:33 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-03-29 13:54:33 +0200 |
commit | 7e9c44f0dd5e7c078df73d35cd3bf7b02ffffec6 (patch) | |
tree | 5b095f4c4c40410ab9d2d0b4e30e55e0e7c21a02 /src/main/java/at/hannibal2/skyhanni/features/misc | |
parent | d90187217926ac53fdeee5420bb331a1f4335e91 (diff) | |
download | skyhanni-7e9c44f0dd5e7c078df73d35cd3bf7b02ffffec6.tar.gz skyhanni-7e9c44f0dd5e7c078df73d35cd3bf7b02ffffec6.tar.bz2 skyhanni-7e9c44f0dd5e7c078df73d35cd3bf7b02ffffec6.zip |
Bump MoulConfig for better sizes; Keep gui editor state
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/misc/ButtonOnPause.kt | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/ButtonOnPause.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/ButtonOnPause.kt index d81f9e242..c28119857 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/misc/ButtonOnPause.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/misc/ButtonOnPause.kt @@ -1,9 +1,8 @@ package at.hannibal2.skyhanni.features.misc import at.hannibal2.skyhanni.SkyHanniMod +import at.hannibal2.skyhanni.config.ConfigGuiManager import at.hannibal2.skyhanni.utils.LorenzUtils -import io.github.moulberry.moulconfig.gui.GuiScreenElementWrapper -import io.github.moulberry.moulconfig.gui.MoulConfigEditor import net.minecraft.client.gui.GuiButton import net.minecraft.client.gui.GuiIngameMenu import net.minecraftforge.client.event.GuiScreenEvent @@ -17,9 +16,7 @@ class ButtonOnPause { if (!LorenzUtils.isHyPixel) return if (SkyHanniMod.feature.misc.configButtonOnPause && event.gui is GuiIngameMenu && event.button.id == buttonId) { - SkyHanniMod.screenToOpen = GuiScreenElementWrapper( - MoulConfigEditor(SkyHanniMod.configManager.processor) - ) + ConfigGuiManager.openConfigGui() } } |