From 87938c7fcafa5d0a95d6690f00a0adccc8ff2c3f Mon Sep 17 00:00:00 2001 From: MSWS Date: Tue, 27 Aug 2024 20:10:27 -0700 Subject: [PATCH] Fix onTick case --- mod/Jailbreak.SpecialDay/SpecialDays/NoScopeDay.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/Jailbreak.SpecialDay/SpecialDays/NoScopeDay.cs b/mod/Jailbreak.SpecialDay/SpecialDays/NoScopeDay.cs index 69e6d3f2..6f401815 100644 --- a/mod/Jailbreak.SpecialDay/SpecialDays/NoScopeDay.cs +++ b/mod/Jailbreak.SpecialDay/SpecialDays/NoScopeDay.cs @@ -60,12 +60,12 @@ public override void Execute() { player.GiveNamedItem(weapon); } - Plugin.RegisterListener(OnTick); + Plugin.RegisterListener(onTick); base.Execute(); } - protected void OnTick() { + private void onTick() { foreach (var player in PlayerUtil.GetAlive()) disableScope(player); } @@ -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(OnTick); + Plugin.RemoveListener(onTick); return result; }