From 1533d07f23743cfaa7c9cc12e82cb632f2c358f5 Mon Sep 17 00:00:00 2001 From: EvilFactory Date: Mon, 14 Nov 2022 14:07:38 -0300 Subject: [PATCH] Fix roundStart and roundEnd hooks being called twice in sub editor --- .../BarotraumaClient/ClientSource/Screens/SubEditorScreen.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/Barotrauma/BarotraumaClient/ClientSource/Screens/SubEditorScreen.cs b/Barotrauma/BarotraumaClient/ClientSource/Screens/SubEditorScreen.cs index 664a161aa..ab74c02ec 100644 --- a/Barotrauma/BarotraumaClient/ClientSource/Screens/SubEditorScreen.cs +++ b/Barotrauma/BarotraumaClient/ClientSource/Screens/SubEditorScreen.cs @@ -1046,11 +1046,8 @@ namespace Barotrauma GameSession gameSession = new GameSession(backedUpSubInfo, "", GameModePreset.TestMode, CampaignSettings.Empty, null); gameSession.StartRound(null, false); - GameMain.LuaCs.Hook.Call("roundStart"); - (gameSession.GameMode as TestGameMode).OnRoundEnd = () => { - GameMain.LuaCs.Hook.Call("roundEnd"); Submarine.Unload(); GameMain.SubEditorScreen.Select(); };