diff --git a/CHANGELOG.md b/CHANGELOG.md index e62f9e9801..8cf26b6223 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ All notable changes to this project will be documented in this file. - [Netkan] Re-sort module properties after merging (#3957 by: HebaruSan) - [Netkan] Update and optimize meta tester and inflator images (#3958, #3968 by: HebaruSan; reviewed: techman83) +- [Netkan] Generate schema compliant game versions from swinfo.json (#3969 by: HebaruSan) ## v1.34.2 (Minkowski²) 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)