1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-25 13:03:35 +08:00

Use constant value for MIRAI_CUSTOM_ELEM_TYPE

This commit is contained in:
Him188 2022-05-21 16:22:46 +01:00
parent 1407bcf251
commit 617b32aa14

View File

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