Skip to content

Commit

Permalink
Add default for MutatorSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
VirxEC committed Aug 5, 2024
1 parent f0598ac commit c323a5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions RLBotCS/Server/FlatbuffersMessage/StartMatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ public ServerAction Execute(ServerContext context)
foreach (var (writer, _) in context.Sessions.Values)
writer.TryWrite(new SessionMessage.StopMatch());

if (MatchSettings.MutatorSettings == null)
MatchSettings.MutatorSettings = new();

context.RenderingIsEnabled = MatchSettings.EnableRendering;
context.StateSettingIsEnabled = MatchSettings.EnableStateSetting;

Expand Down

0 comments on commit c323a5b

Please sign in to comment.