From 617b32aa14a79f168c09e246680feeaa012591e7 Mon Sep 17 00:00:00 2001 From: Him188 Date: Sat, 21 May 2022 16:22:46 +0100 Subject: [PATCH] Use constant value for `MIRAI_CUSTOM_ELEM_TYPE` --- .../kotlin/message/protocol/impl/CustomMessageProtocol.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mirai-core/src/commonMain/kotlin/message/protocol/impl/CustomMessageProtocol.kt b/mirai-core/src/commonMain/kotlin/message/protocol/impl/CustomMessageProtocol.kt index 6b40b296e..230c51e44 100644 --- a/mirai-core/src/commonMain/kotlin/message/protocol/impl/CustomMessageProtocol.kt +++ b/mirai-core/src/commonMain/kotlin/message/protocol/impl/CustomMessageProtocol.kt @@ -40,7 +40,7 @@ internal class CustomMessageProtocol : MessageProtocol() { } private companion object { - private val MIRAI_CUSTOM_ELEM_TYPE = "mirai".hashCode() // 103904510 + private const val MIRAI_CUSTOM_ELEM_TYPE = 103904510 // "mirai.hashCode()" } }