mirror of
https://github.com/edgegamers/Jailbreak.git
synced 2025-12-06 04:42:57 -08:00
Fix End Round Crashes
This commit is contained in:
@@ -115,7 +115,10 @@ public class RocketJumpDay(BasePlugin plugin, IServiceProvider provider)
|
||||
Plugin.DeregisterEventHandler<EventWeaponFire>(onWeaponFire);
|
||||
Plugin.DeregisterEventHandler<EventPlayerHurt>(onHurt, HookMode.Pre);
|
||||
Plugin.RemoveListener<Listeners.OnTick>(onTick);
|
||||
jumping.Clear();
|
||||
|
||||
// Delay to avoid mutation during hook execution
|
||||
Server.NextFrameAsync(() => { jumping.Clear(); });
|
||||
|
||||
return base.OnEnd(ev, info);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user