Refactor some protos

This commit is contained in:
Melledy
2023-11-09 14:53:21 -08:00
parent d1c96aa9a3
commit 28e7c22d38
3 changed files with 325 additions and 42 deletions

View File

@@ -15,7 +15,7 @@ public class HandlerSendMsgCsReq extends PacketHandler {
public void handle(GameSession session, byte[] header, byte[] data) throws Exception {
var req = SendMsgCsReq.parseFrom(data);
for (int targetUid : req.getToUid()) {
for (int targetUid : req.getToUidList()) {
if (req.getMsgType() == MsgType.MSG_TYPE_CUSTOM_TEXT) {
session.getPlayer().getChatManager().sendChat(targetUid, req.getText());
} else if (req.getMsgType() == MsgType.MSG_TYPE_EMOJI) {