Skip to content

Commit

Permalink
Kill timer on roundend/start
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Aug 24, 2024
1 parent 7f4b1f6 commit e60db40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/Jailbreak.Warden/Global/WardenBehavior.cs
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,7 @@ public HookResult OnRoundStart(EventRoundStart ev, GameEventInfo info) {
if (openCmd == null) return HookResult.Continue;
var cmdLocale = provider.GetRequiredService<IWardenCmdOpenLocale>();

openCellsTimer?.Kill();
openCellsTimer = parent.AddTimer(CvWardenAutoOpenCells.Value, () => {
if (openCmd.OpenedCells) return;
var zone = provider.GetService<IZoneManager>();
Expand Down

0 comments on commit e60db40

Please sign in to comment.