Skip to content

Commit

Permalink
Check if the client still in server or not
Browse files Browse the repository at this point in the history
  • Loading branch information
oylsister committed Oct 5, 2024
1 parent d191924 commit 615cfcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ZombieSharp/EventModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ private HookResult OnPlayerDeath(EventPlayerDeath @event, GameEventInfo info)
RepeatKillerOnPlayerDeath(client, attacker, weapon);
}

if (ClientMoanTimer[client] != null)
if (ClientMoanTimer.ContainsKey(client) && ClientMoanTimer[client] != null)
{
ClientMoanTimer[client].Kill();
}
Expand Down

0 comments on commit 615cfcd

Please sign in to comment.