From 2568524eb164ecb31cbc5bbd5fa562c0491233b7 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sat, 14 Oct 2023 22:51:30 -0400 Subject: [PATCH] Fix `OpenDreamInstallation` constructor Actually assign the `Version` property --- .../Components/Engine/OpenDreamInstallation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Components/Engine/OpenDreamInstallation.cs b/src/Tgstation.Server.Host/Components/Engine/OpenDreamInstallation.cs index 6d1fc3377a..1ce5e73dae 100644 --- a/src/Tgstation.Server.Host/Components/Engine/OpenDreamInstallation.cs +++ b/src/Tgstation.Server.Host/Components/Engine/OpenDreamInstallation.cs @@ -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));