Fix StringConstant

This commit is contained in:
Him188 2020-10-30 13:02:07 +08:00
parent 1ae6b1f13c
commit 43eef23b67

View File

@ -186,7 +186,7 @@ public sealed class AbstractCommandValueParameter<T> : CommandValueParameter<T>,
override fun toString(): String = "<$expectingValue>"
override fun acceptingImpl(expectingType: KType, argument: CommandValueArgument, commandArgumentContext: CommandArgumentContext?): ArgumentAcceptance {
return if (argument.type.isSubtypeOf(expectingType) && argument.value.content == expectingValue) {
return if (argument.value.content == expectingValue) {
ArgumentAcceptance.Direct
} else ArgumentAcceptance.Impossible
}