fix endless update

This commit is contained in:
2024-12-07 18:11:04 +01:00
parent 3b79335e85
commit 50cbf081e1

View File

@@ -83,6 +83,8 @@ public class ModpackInstaller(ModpackConfig updateConfig, ModpackInfo modpackInf
if (result.Actions.Count == 0)
result.HasError = true;
}
else
result.IsInstalled = true;
// Check update actions
if (!result.HasError && (exists || options.AllowUpdaterAfterInstall))
@@ -107,8 +109,10 @@ public class ModpackInstaller(ModpackConfig updateConfig, ModpackInfo modpackInf
// Check & add
if (action.Side.IsSide(options.Side) && (!action.IsExtra || options.IncludeExtras) && !result.Actions.Any(n => n.DestPath == action.DestPath))
{
actionsToAdd.Add(action);
}
}
result.Actions.InsertRange(actionsZeroIndex, actionsToAdd);