From 303ca547853c7d5d5eea2cd648c41e01c5931ec3 Mon Sep 17 00:00:00 2001 From: Ethan Date: Mon, 24 Oct 2022 14:21:02 -0400 Subject: fix --- src/main/kotlin/cc/woverflow/chatting/Chatting.kt | 2 +- src/main/kotlin/cc/woverflow/chatting/command/ChattingCommand.kt | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'src/main') diff --git a/src/main/kotlin/cc/woverflow/chatting/Chatting.kt b/src/main/kotlin/cc/woverflow/chatting/Chatting.kt index 61e61dd..986a229 100644 --- a/src/main/kotlin/cc/woverflow/chatting/Chatting.kt +++ b/src/main/kotlin/cc/woverflow/chatting/Chatting.kt @@ -75,7 +75,7 @@ object Chatting { @Mod.EventHandler fun onInitialization(event: FMLInitializationEvent) { ChattingConfig - CommandManager.INSTANCE.registerCommand(ChattingCommand.Companion::class.java) + CommandManager.INSTANCE.registerCommand(ChattingCommand()) ClientRegistry.registerKeyBinding(keybind) EVENT_BUS.register(this) EVENT_BUS.register(ChatSpamBlock) diff --git a/src/main/kotlin/cc/woverflow/chatting/command/ChattingCommand.kt b/src/main/kotlin/cc/woverflow/chatting/command/ChattingCommand.kt index 0ba8bd7..7fcd4a8 100644 --- a/src/main/kotlin/cc/woverflow/chatting/command/ChattingCommand.kt +++ b/src/main/kotlin/cc/woverflow/chatting/command/ChattingCommand.kt @@ -7,10 +7,8 @@ import cc.woverflow.chatting.config.ChattingConfig @Command(value = Chatting.ID, description = "Access the " + Chatting.NAME + " GUI.") class ChattingCommand { - companion object { - @Main - fun main() { - ChattingConfig.openGui() - } + @Main + fun main() { + ChattingConfig.openGui() } } \ No newline at end of file -- cgit