From d71a06a465eed2293105ddc176bd6baca3132069 Mon Sep 17 00:00:00 2001 From: Oiltanker Date: Fri, 15 Apr 2022 22:05:51 +0300 Subject: [PATCH] my missing hook :'( --- .../BarotraumaShared/SharedSource/GameSession/GameSession.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Barotrauma/BarotraumaShared/SharedSource/GameSession/GameSession.cs b/Barotrauma/BarotraumaShared/SharedSource/GameSession/GameSession.cs index f56a45a5e..2ac46f975 100644 --- a/Barotrauma/BarotraumaShared/SharedSource/GameSession/GameSession.cs +++ b/Barotrauma/BarotraumaShared/SharedSource/GameSession/GameSession.cs @@ -750,6 +750,9 @@ namespace Barotrauma /// public static ImmutableHashSet GetSessionCrewCharacters(CharacterType type) { + var result = GameMain.LuaCs.Hook.Call("getSessionCrewCharacters", type); + if (result != null) return ImmutableHashSet.Create(result); + if (!(GameMain.GameSession.CrewManager is { } crewManager)) { return ImmutableHashSet.Empty; } IEnumerable players;