From cd961faf7fb6fd82296c139054e9565f341b1bf9 Mon Sep 17 00:00:00 2001 From: svn Date: Tue, 5 Mar 2024 00:48:27 +0000 Subject: [PATCH] minor fix --- RoundStartFreezeTimeManager.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/RoundStartFreezeTimeManager.cs b/RoundStartFreezeTimeManager.cs index bb84ba7..f0aa244 100644 --- a/RoundStartFreezeTimeManager.cs +++ b/RoundStartFreezeTimeManager.cs @@ -54,6 +54,12 @@ public void Start() _playerFreezeManager.Freeze(player, _plugin.Config.RoundStartFreezeTime, true, false, true); } + if (_countdownTimer != null) + { + _countdownTimer.Kill(); + _countdownTimer = null; + } + _countdownTimer = _plugin.AddTimer(0.1f, CountdownTimerTick, TimerFlags.REPEAT); return HookResult.Continue;