From: danbudworthmead Date: Sat, 28 Sep 2024 15:37:43 +0000 (+0100) Subject: updated the api call to use the setnamerpc serialise X-Git-Tag: v1.10.1~3 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=2f9406cb6a83e6b84644cc5b2f4f32044b8da8bb;p=rhonda%2Fimpostor.git updated the api call to use the setnamerpc serialise the client now expects a byte which is the netid otherwise the setname call wont work --- diff --git a/src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.Api.cs b/src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.Api.cs index 34163f6..2d8a8f1 100644 --- a/src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.Api.cs +++ b/src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.Api.cs @@ -23,7 +23,7 @@ namespace Impostor.Server.Net.Inner.Objects PlayerInfo.CurrentOutfit.PlayerName = name; using var writer = Game.StartRpc(NetId, RpcCalls.SetName); - writer.Write(name); + Rpc06SetName.Serialize(writer, PlayerInfo.NetId, name); await Game.FinishRpcAsync(writer); }