Fix OpenDreamInstallation constructor

Actually assign the `Version` property
This commit is contained in:
Jordan Dominion
2023-10-14 22:51:30 -04:00
parent bf021d58fd
commit 2568524eb1
@@ -49,7 +49,7 @@ namespace Tgstation.Server.Host.Components.Engine
ServerExePath = serverExePath ?? throw new ArgumentNullException(nameof(serverExePath));
CompilerExePath = compilerExePath ?? throw new ArgumentNullException(nameof(compilerExePath));
InstallationTask = installationTask ?? throw new ArgumentNullException(nameof(installationTask));
ArgumentNullException.ThrowIfNull(version);
Version = version ?? throw new ArgumentNullException(nameof(version));
if (version.Engine.Value != EngineType.OpenDream)
throw new ArgumentException($"Invalid EngineType: {version.Engine.Value}", nameof(version));