mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-05-24 02:19:50 +08:00
Fix deprecated chat references
This commit is contained in:
committed by
Luke H-W
Unverified
parent
c115fe1abe
commit
97779fd35a
@@ -17,9 +17,9 @@ public class HandlerPlayerChatReq extends PacketHandler {
|
||||
ChatInfo.ContentCase content = req.getChatInfo().getContentCase();
|
||||
|
||||
if (content == ChatInfo.ContentCase.TEXT) {
|
||||
session.getServer().getChatManager().sendTeamMessage(session.getPlayer(), req.getChannelId(), req.getChatInfo().getText());
|
||||
session.getServer().getChatSystem().sendTeamMessage(session.getPlayer(), req.getChannelId(), req.getChatInfo().getText());
|
||||
} else if (content == ChatInfo.ContentCase.ICON) {
|
||||
session.getServer().getChatManager().sendTeamMessage(session.getPlayer(), req.getChannelId(), req.getChatInfo().getIcon());
|
||||
session.getServer().getChatSystem().sendTeamMessage(session.getPlayer(), req.getChannelId(), req.getChatInfo().getIcon());
|
||||
}
|
||||
|
||||
session.send(new PacketPlayerChatRsp());
|
||||
|
||||
Reference in New Issue
Block a user