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)
|
foreach (var action in checkingVersion.Actions)
|
||||||
{
|
{
|
||||||
// Resolve inherits
|
// 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);
|
JsonConvert.PopulateObject(JsonConvert.SerializeObject(iaction), action);
|
||||||
|
|
||||||
// Check & add
|
// Check & add
|
||||||
|
|||||||
Reference in New Issue
Block a user