From 1282cfbf03ed1ffb4d6524671a3903a6ab548571 Mon Sep 17 00:00:00 2001 From: GuoWQ222 Date: Sun, 12 May 2024 00:05:21 +0800 Subject: [PATCH] fix issue --- logic/Server/RpcServices.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/logic/Server/RpcServices.cs b/logic/Server/RpcServices.cs index 2b8d21d8..5ada9445 100755 --- a/logic/Server/RpcServices.cs +++ b/logic/Server/RpcServices.cs @@ -76,6 +76,13 @@ public override async Task AddPlayer(PlayerMsg request, IServerStreamWriter= 0; i--) + { + if (currentGameInfo.ObjMessage[i].NewsMessage != null) + { + currentGameInfo.ObjMessage.RemoveAt(i); + } + } await responseStream.WriteAsync(currentGameInfo); GameServerLogging.logger.ConsoleLog("Send!", false); }