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
This commit is contained in:
danbudworthmead authored and miniduikboot committed 2024-10-05 12:28:16 +02:00
1 parent d5f48aa798
commit 2f9406cb6a
1 file changed
+1 -1
@@ -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);
}