mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-23 10:44:36 +01:00
Refactor some protos
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user