From e60db40e8ed21a9118fb3d48c7b79b5cd56fb060 Mon Sep 17 00:00:00 2001 From: MSWS Date: Fri, 23 Aug 2024 23:23:36 -0700 Subject: [PATCH] Kill timer on roundend/start --- mod/Jailbreak.Warden/Global/WardenBehavior.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/mod/Jailbreak.Warden/Global/WardenBehavior.cs b/mod/Jailbreak.Warden/Global/WardenBehavior.cs index efd48b2e..bc19e38f 100644 --- a/mod/Jailbreak.Warden/Global/WardenBehavior.cs +++ b/mod/Jailbreak.Warden/Global/WardenBehavior.cs @@ -409,6 +409,7 @@ public HookResult OnRoundStart(EventRoundStart ev, GameEventInfo info) { if (openCmd == null) return HookResult.Continue; var cmdLocale = provider.GetRequiredService(); + openCellsTimer?.Kill(); openCellsTimer = parent.AddTimer(CvWardenAutoOpenCells.Value, () => { if (openCmd.OpenedCells) return; var zone = provider.GetService();