From 5dca8d983a4e6065446f2aa4dca352957c153faf Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Fri, 12 Apr 2024 13:40:50 +0300 Subject: [PATCH] Fixed UpdateInfo --- src/Bannerlord.ModuleManager.Models/ModuleInfoExtended.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Bannerlord.ModuleManager.Models/ModuleInfoExtended.cs b/src/Bannerlord.ModuleManager.Models/ModuleInfoExtended.cs index 5627ba5..6a1a941 100644 --- a/src/Bannerlord.ModuleManager.Models/ModuleInfoExtended.cs +++ b/src/Bannerlord.ModuleManager.Models/ModuleInfoExtended.cs @@ -158,8 +158,7 @@ record ModuleInfoExtended // var url = moduleNode?.SelectSingleNode("Url")?.Attributes?["value"]?.InnerText ?? string.Empty; - var updateInfoProvider = moduleNode?.SelectSingleNode("UpdateInfo")?.Attributes?["provider"]?.InnerText ?? string.Empty; - var updateInfoValue = moduleNode?.SelectSingleNode("UpdateInfo")?.Attributes?["value"]?.InnerText ?? string.Empty; + var updateInfo = moduleNode?.SelectSingleNode("UpdateInfo")?.Attributes?["value"]?.InnerText ?? string.Empty; var dependentModuleMetadatasNode = moduleNode?.SelectSingleNode("DependedModuleMetadatas"); var dependentModuleMetadatasList = dependentModuleMetadatasNode?.SelectNodes("DependedModuleMetadata"); @@ -268,7 +267,7 @@ record ModuleInfoExtended ModulesToLoadAfterThis = modulesToLoadAfterThis, IncompatibleModules = incompatibleModules, Url = url, - UpdateInfo = !string.IsNullOrEmpty(updateInfoProvider) && !string.IsNullOrEmpty(updateInfoValue) ? $"{updateInfoProvider}:{updateInfoValue}" : string.Empty, + UpdateInfo = !string.IsNullOrEmpty(updateInfo) ? updateInfo : string.Empty, DependentModuleMetadatas = dependentModuleMetadatas }; }