Fixed a critical issue with in-game chat.

This commit is contained in:
Kei-Luna
2026-04-29 09:01:20 +09:00
parent 720f56c708
commit c61ac08dd3
3 changed files with 31 additions and 4 deletions

View File

@@ -38,9 +38,9 @@ public class PlayerCommandSender(PlayerInstance player) : ICommandSender
Type = ChatType.Friend,
Sender = (uint)ConfigManager.Config.ServerOption.ServerProfile.Uid,
Recver = (uint)Player.Uid,
Text = msg,
Text = ChatMessageHelper.NormalizeForClient(msg),
Profile = Player.ToServerFriendProto(),
TimeStamp = (uint)Extensions.GetUnixMs()
TimeStamp = ChatMessageHelper.BuildClientTimestamp()
};
await Player.SendPacket(CmdIds.NtfFriendChat, data);
}