Skip to content

Commit

Permalink
Use NextFrame for SetMatchVariable
Browse files Browse the repository at this point in the history
  • Loading branch information
TheR00st3r committed Nov 2, 2023
1 parent 4efeb0e commit e5b8acd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion PugSharp/PugSharp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,10 @@ public void SwitchMap(string selectedMap)

if (_Match != null)
{
SetMatchVariable(_Match.Config);
Server.NextFrame(() =>
{
SetMatchVariable(_Match.Config);
});
}
}

Expand Down

0 comments on commit e5b8acd

Please sign in to comment.