From c3c233c92f9ac3d3bebf710a52cb1832b498c9ee Mon Sep 17 00:00:00 2001 From: Evil Factory <36804725+evilfactory@users.noreply.github.com> Date: Thu, 14 Apr 2022 16:37:43 -0300 Subject: [PATCH] new Hook to make writeClientList easier to use --- .../BarotraumaServer/ServerSource/Networking/GameServer.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaServer/ServerSource/Networking/GameServer.cs b/Barotrauma/BarotraumaServer/ServerSource/Networking/GameServer.cs index cbc465aa9..f7f02b1d8 100644 --- a/Barotrauma/BarotraumaServer/ServerSource/Networking/GameServer.cs +++ b/Barotrauma/BarotraumaServer/ServerSource/Networking/GameServer.cs @@ -1831,7 +1831,9 @@ namespace Barotrauma.Networking !client.HasPermission(ClientPermissions.Unban), IsDownloading = FileSender.ActiveTransfers.Any(t => t.Connection == client.Connection) }; - + + GameMain.Lua.hook.Call("writeClientList.modifyTempClientData", c, client, tempClientData, outmsg); + outmsg.Write(tempClientData); outmsg.WritePadBits(); }