mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-20 01:46:11 +00:00
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:
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user