check against Id instead of Name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user