aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/commands
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-03-25 03:02:33 +0100
committernea <nea@nea.moe>2023-03-26 16:37:00 +0200
commit2eae56fabfd8c43ad2b5decc96a840e741796082 (patch)
tree8a772952d673b08a466962f773efccf89b2364bf /src/main/java/at/hannibal2/skyhanni/config/commands
parentf82c30cbd7c191051aae239b9df06c2c2181c8d4 (diff)
downloadskyhanni-2eae56fabfd8c43ad2b5decc96a840e741796082.tar.gz
skyhanni-2eae56fabfd8c43ad2b5decc96a840e741796082.tar.bz2
skyhanni-2eae56fabfd8c43ad2b5decc96a840e741796082.zip
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.kt12
1 files changed, 6 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 048f4968a..01bc17d9c 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,7 @@
package at.hannibal2.skyhanni.config.commands
import at.hannibal2.skyhanni.SkyHanniMod
-import at.hannibal2.skyhanni.config.ConfigEditor
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.bingo.BingoCardDisplay
@@ -15,9 +13,10 @@ import at.hannibal2.skyhanni.test.LorenzTest
import at.hannibal2.skyhanni.test.PacketTest
import at.hannibal2.skyhanni.test.command.CopyItemCommand
import at.hannibal2.skyhanni.test.command.CopyNearbyEntitiesCommand
+import io.github.moulberry.moulconfig.gui.GuiScreenElementWrapper
+import io.github.moulberry.moulconfig.gui.MoulConfigEditor
import net.minecraft.command.ICommandSender
import net.minecraftforge.client.ClientCommandHandler
-import org.apache.commons.lang3.StringUtils
object Commands {
@@ -26,11 +25,12 @@ object Commands {
if (it[0].lowercase() == "gui") {
GuiEditManager.openGuiEditor()
} else {
- SkyHanniMod.screenToOpen =
- GuiScreenElementWrapper(ConfigEditor(SkyHanniMod.feature, StringUtils.join(it, " ")))
+ val editor = MoulConfigEditor(SkyHanniMod.configManager.processor)
+ editor.search(it.joinToString(" "))
+ SkyHanniMod.screenToOpen = GuiScreenElementWrapper(editor)
}
} else {
- SkyHanniMod.screenToOpen = GuiScreenElementWrapper(ConfigEditor(SkyHanniMod.feature))
+ SkyHanniMod.screenToOpen = GuiScreenElementWrapper(MoulConfigEditor(SkyHanniMod.configManager.processor))
}
}