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()" } }