From 278f427f9524bc46870628c993e0f8f5caf1819d Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Wed, 20 Dec 2023 09:45:42 -0600 Subject: [PATCH] Generate schema compliant game versions from swinfo.json --- Netkan/Transformers/SpaceWarpInfoTransformer.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Netkan/Transformers/SpaceWarpInfoTransformer.cs b/Netkan/Transformers/SpaceWarpInfoTransformer.cs index 7ebc3bfb4e..12a2d33957 100644 --- a/Netkan/Transformers/SpaceWarpInfoTransformer.cs +++ b/Netkan/Transformers/SpaceWarpInfoTransformer.cs @@ -79,8 +79,10 @@ public IEnumerable Transform(Metadata metadata, TransformOptions opts) if (GameVersion.TryParse(swinfo.ksp2_version.min, out GameVersion minVer) || GameVersion.TryParse(swinfo.ksp2_version.max, out maxVer)) { - log.InfoFormat("Found compatibility: {0}–{1}", minVer, maxVer); - ModuleService.ApplyVersions(json, null, minVer, maxVer); + log.InfoFormat("Found compatibility: {0}–{1}", minVer?.WithoutBuild, + maxVer?.WithoutBuild); + ModuleService.ApplyVersions(json, null, minVer?.WithoutBuild, + maxVer?.WithoutBuild); } var moduleDeps = (mod.depends?.OfType() .Select(r => r.name)