Skip to content

Commit

Permalink
fix: run next tick
Browse files Browse the repository at this point in the history
  • Loading branch information
derkalle4 committed Jan 13, 2025
1 parent 729537e commit 829117a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RollTheDice+DiceIncreaseSpeed.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 829117a

Please sign in to comment.