Skip to content

Commit

Permalink
Fix onTick case
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Aug 28, 2024
1 parent b213b9a commit 87938c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/Jailbreak.SpecialDay/SpecialDays/NoScopeDay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ public override void Execute() {
player.GiveNamedItem(weapon);
}

Plugin.RegisterListener<Listeners.OnTick>(OnTick);
Plugin.RegisterListener<Listeners.OnTick>(onTick);

base.Execute();
}

protected void OnTick() {
private void onTick() {
foreach (var player in PlayerUtil.GetAlive()) disableScope(player);
}

Expand All @@ -88,7 +88,7 @@ private void disableScope(CCSPlayerController player) {
override protected HookResult
OnEnd(EventRoundEnd @event, GameEventInfo info) {
var result = base.OnEnd(@event, info);
Plugin.RemoveListener<Listeners.OnTick>(OnTick);
Plugin.RemoveListener<Listeners.OnTick>(onTick);
return result;
}

Expand Down

0 comments on commit 87938c7

Please sign in to comment.