Skip to content

Commit

Permalink
fix: teambalancer bug
Browse files Browse the repository at this point in the history
  • Loading branch information
derkalle4 committed Nov 11, 2024
1 parent a3e03ad commit 06857fa
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/TeamBalancer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public partial class TeamBalancer : BasePlugin
public override string ModuleName => "Team Balancer";
public override string ModuleAuthor => "Jon-Mailes Graeffe <[email protected]> / Kalle <[email protected]>";

private bool _halfTime = true;
private bool _halfTime = false;

public override void Load(bool hotReload)
{
Expand Down Expand Up @@ -97,9 +97,10 @@ public HookResult OnPlayerTeam(EventPlayerTeam @event, GameEventInfo info)

public HookResult OnStartHalftime(EventStartHalftime @event, GameEventInfo info)
{
_halfTime = false;
AddTimer(5f, ()=>{
_halfTime = true;
_halfTime = true;
AddTimer(5f, () =>
{
_halfTime = false;
});
return HookResult.Continue;
}
Expand Down

0 comments on commit 06857fa

Please sign in to comment.