Fix nullability for ReadyProfiles in GamePreset

This commit is contained in:
DrSmugleaf
2020-12-16 10:00:10 +01:00
parent c770c6b37e
commit 49e6db2b87
4 changed files with 6 additions and 6 deletions

View File

@@ -1049,7 +1049,7 @@ The current game mode is: [color=white]{0}[/color].
private GamePreset MakeGamePreset(Dictionary<NetUserId, HumanoidCharacterProfile> readyProfiles)
{
var preset = _dynamicTypeFactory.CreateInstance<GamePreset>(_presetType ?? typeof(PresetSandbox));
preset.readyProfiles = readyProfiles;
preset.ReadyProfiles = readyProfiles;
return preset;
}