From 333f5011def24916bb09ad122f83aa1f0de46142 Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Mon, 9 Sep 2024 08:58:16 +0200 Subject: [PATCH] check against Id instead of Name --- ModpackUpdater.Manager/ModpackInstaller.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ModpackUpdater.Manager/ModpackInstaller.cs b/ModpackUpdater.Manager/ModpackInstaller.cs index 085e957..1f1744f 100644 --- a/ModpackUpdater.Manager/ModpackInstaller.cs +++ b/ModpackUpdater.Manager/ModpackInstaller.cs @@ -104,7 +104,7 @@ public class ModpackInstaller(ModpackConfig updateConfig, ModpackInfo modpackInf foreach (var action in checkingVersion.Actions) { // Resolve inherits - if (!string.IsNullOrWhiteSpace(action.InheritFrom) && installInfos.Actions.FirstOrDefault(a => a.Name == action.InheritFrom) is InstallAction iaction) + if (!string.IsNullOrWhiteSpace(action.InheritFrom) && installInfos.Actions.FirstOrDefault(a => a.Id == action.InheritFrom) is InstallAction iaction) JsonConvert.PopulateObject(JsonConvert.SerializeObject(iaction), action); // Check & add