From 31b0bbd3d9f37bb134716b2d9ecb3aad8187f333 Mon Sep 17 00:00:00 2001 From: EvilFactory Date: Sat, 16 Jul 2022 11:28:33 -0300 Subject: [PATCH] fix jobsAssigned hook not working for respawn shuttles --- .../BarotraumaServer/ServerSource/Networking/GameServer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Barotrauma/BarotraumaServer/ServerSource/Networking/GameServer.cs b/Barotrauma/BarotraumaServer/ServerSource/Networking/GameServer.cs index 39ed9eb31..70b800d67 100644 --- a/Barotrauma/BarotraumaServer/ServerSource/Networking/GameServer.cs +++ b/Barotrauma/BarotraumaServer/ServerSource/Networking/GameServer.cs @@ -2282,8 +2282,6 @@ namespace Barotrauma.Networking AssignJobs(teamClients); - GameMain.LuaCs.Hook.Call("jobsAssigned"); - List characterInfos = new List(); foreach (Client client in teamClients) { @@ -3839,6 +3837,8 @@ namespace Barotrauma.Networking assignedClientCount[c.AssignedJob.Prefab]++; } } + + GameMain.LuaCs.Hook.Call("jobsAssigned", unassigned); } public void AssignBotJobs(List bots, CharacterTeamType teamID)