aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan <git@ethanlibs.co>2022-10-24 14:21:02 -0400
committerEthan <git@ethanlibs.co>2022-10-24 14:21:02 -0400
commit303ca547853c7d5d5eea2cd648c41e01c5931ec3 (patch)
treeed3b49e5c18c97a0dbb3b5c74be2d36eb583f903
parent365ab9eb81ef269e3c19483d2cc5c3169ef8abc4 (diff)
downloadChatting-303ca547853c7d5d5eea2cd648c41e01c5931ec3.tar.gz
Chatting-303ca547853c7d5d5eea2cd648c41e01c5931ec3.tar.bz2
Chatting-303ca547853c7d5d5eea2cd648c41e01c5931ec3.zip
fix
-rw-r--r--src/main/kotlin/cc/woverflow/chatting/Chatting.kt2
-rw-r--r--src/main/kotlin/cc/woverflow/chatting/command/ChattingCommand.kt8
2 files changed, 4 insertions, 6 deletions
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