aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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