From 6ebad54856aa5914d802f540ea309cc93b7e7ad0 Mon Sep 17 00:00:00 2001 From: Him188 Date: Sat, 12 Sep 2020 19:10:41 +0800 Subject: [PATCH] Fix compilation --- .../kotlin/net/mamoe/mirai/console/command/Command.kt | 8 ++++---- buildSrc/src/main/kotlin/Versions.kt | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/Command.kt b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/Command.kt index 5a29b2559..1f70a38ba 100644 --- a/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/Command.kt +++ b/backend/mirai-console/src/main/kotlin/net/mamoe/mirai/console/command/Command.kt @@ -84,13 +84,13 @@ public interface Command { @JvmStatic public val Command.primaryName: String get() = names[0] - - @JvmSynthetic - public suspend inline fun Command.onCommand(sender: CommandSender, args: MessageChain): Unit = - sender.run { onCommand(args) } } } +@JvmSynthetic +public suspend inline fun Command.onCommand(sender: CommandSender, args: MessageChain): Unit = + sender.onCommand(args) + /** * [Command] 的基础实现 * diff --git a/buildSrc/src/main/kotlin/Versions.kt b/buildSrc/src/main/kotlin/Versions.kt index 069901671..98382a83e 100644 --- a/buildSrc/src/main/kotlin/Versions.kt +++ b/buildSrc/src/main/kotlin/Versions.kt @@ -18,7 +18,7 @@ object Versions { const val core = "1.2.3" - const val console = "1.0-M4-dev-5" + const val console = "1.0-M4-dev-7" const val consoleGraphical = "0.0.7" const val consoleTerminal = "0.1.0" const val consolePure = console