mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-19 17:14:42 +08:00
Use constant value for MIRAI_CUSTOM_ELEM_TYPE
This commit is contained in:
parent
1407bcf251
commit
617b32aa14
@ -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()"
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user