diff --git a/mirai-core/src/main/java/net/mamoe/mirai/network/packet/ServerEvent.kt b/mirai-core/src/main/java/net/mamoe/mirai/network/packet/ServerEvent.kt index 475dc291a..06ed1a3d4 100644 --- a/mirai-core/src/main/java/net/mamoe/mirai/network/packet/ServerEvent.kt +++ b/mirai-core/src/main/java/net/mamoe/mirai/network/packet/ServerEvent.kt @@ -147,12 +147,12 @@ class ServerFriendMessageEventPacket(input: DataInputStream, packetId: ByteArray @ExperimentalUnsignedTypes override fun decode() { //start at Sep1.0:27 - qq = input.readInt() + qq = input.readInt(0) val msgLength = input.readShort(22) val fontLength = input.readShort(93+msgLength) val offset = msgLength+fontLength message = if(input.readByte(97+offset).toUHexString() == "02"){ - "[face" + input.goto(103+offset).readVarString(1) + ".gif]" + "[face" + input.goto(103+offset).readByte(1).toInt().toString() + ".gif]" //.gif }else { val offset2 = input.readShort(101 + offset)