mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 21:46:52 +01:00
Fix OpenDreamInstallation constructor
Actually assign the `Version` property
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user