Fix End Round Crashes

This commit is contained in:
ShookEagle
2025-07-26 12:04:33 -05:00
parent cccf2c41e7
commit 963bb85c28

View File

@@ -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);
}