check against Id instead of Name

This commit is contained in:
2024-09-09 08:58:16 +02:00
parent c6153488cd
commit 333f5011de

View File

@@ -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