aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/commands
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2023-03-29 21:59:35 +0200
committerGitHub <noreply@github.com>2023-03-29 21:59:35 +0200
commitf9850125f8bf12abd37f8246c5250d0edc4edd49 (patch)
tree9607abb880d04125226befcf946cbfebbac7e2ae /src/main/java/at/hannibal2/skyhanni/config/commands
parent073bb8d1f139b98508cd21dae6fc377fcc7c9230 (diff)
parented2dfa0bfd7a6d69a2eb7349009625991e363fee (diff)
downloadskyhanni-f9850125f8bf12abd37f8246c5250d0edc4edd49.tar.gz
skyhanni-f9850125f8bf12abd37f8246c5250d0edc4edd49.tar.bz2
skyhanni-f9850125f8bf12abd37f8246c5250d0edc4edd49.zip
Merge pull request #22
The non controversial config changes
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/commands')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
index 179104aaf..638ec334f 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
+++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
@@ -1,9 +1,8 @@
package at.hannibal2.skyhanni.config.commands
import at.hannibal2.skyhanni.SkyHanniMod
-import at.hannibal2.skyhanni.config.ConfigEditor
+import at.hannibal2.skyhanni.config.ConfigGuiManager
import at.hannibal2.skyhanni.config.commands.SimpleCommand.ProcessCommandRunnable
-import at.hannibal2.skyhanni.config.core.GuiScreenElementWrapper
import at.hannibal2.skyhanni.data.ApiDataLoader
import at.hannibal2.skyhanni.data.GuiEditManager
import at.hannibal2.skyhanni.features.bazaar.BazaarDataGrabber
@@ -18,7 +17,6 @@ import at.hannibal2.skyhanni.test.command.CopyItemCommand
import at.hannibal2.skyhanni.test.command.CopyNearbyEntitiesCommand
import net.minecraft.command.ICommandSender
import net.minecraftforge.client.ClientCommandHandler
-import org.apache.commons.lang3.StringUtils
object Commands {
@@ -27,11 +25,10 @@ object Commands {
if (it[0].lowercase() == "gui") {
GuiEditManager.openGuiEditor()
} else {
- SkyHanniMod.screenToOpen =
- GuiScreenElementWrapper(ConfigEditor(SkyHanniMod.feature, StringUtils.join(it, " ")))
+ ConfigGuiManager.openConfigGui(it.joinToString(" "))
}
} else {
- SkyHanniMod.screenToOpen = GuiScreenElementWrapper(ConfigEditor(SkyHanniMod.feature))
+ ConfigGuiManager.openConfigGui()
}
}