Skip to content

Commit

Permalink
Should only load match variables for 1st map
Browse files Browse the repository at this point in the history
  • Loading branch information
lanslide-team committed Jan 31, 2024
1 parent 6bfb25f commit 2538adc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions PugSharp/Application.cs
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,12 @@ private void OnMapStartHandler(string mapName)
if (_Match.CurrentState is MatchState.WaitingForPlayersConnectedReady or MatchState.WaitingForPlayersReady)
{
_CsServer.LoadAndExecuteConfig("warmup.cfg");
}

_Dispatcher.NextFrame(() =>
{
SetMatchVariable();
});
_Dispatcher.NextFrame(() =>
{
SetMatchVariable();
});
}
}
}

Expand Down

0 comments on commit 2538adc

Please sign in to comment.