From 829117a8cf16bc38cc9f9be8cd0e1d0f0a396bd3 Mon Sep 17 00:00:00 2001 From: Kalle Date: Mon, 13 Jan 2025 19:09:59 +0100 Subject: [PATCH] fix: run next tick --- src/RollTheDice+DiceIncreaseSpeed.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RollTheDice+DiceIncreaseSpeed.cs b/src/RollTheDice+DiceIncreaseSpeed.cs index 05c8d2f..60e3b25 100644 --- a/src/RollTheDice+DiceIncreaseSpeed.cs +++ b/src/RollTheDice+DiceIncreaseSpeed.cs @@ -59,7 +59,7 @@ private HookResult EventDiceIncreaseSpeedOnPlayerHurt(EventPlayerHurt @event, Ga if (victim == null) return HookResult.Continue; if (!_playersWithIncreasedSpeed.Contains(victim)) return HookResult.Continue; if (victim == null || victim.PlayerPawn == null || !victim.PlayerPawn.IsValid || victim.PlayerPawn.Value == null || victim.LifeState != (byte)LifeState_t.LIFE_ALIVE) return HookResult.Continue; - AddTimer(0f, () => + Server.NextFrame(() => { if (victim == null || !victim.IsValid