completely revert extra property

This commit is contained in:
Schedel Pascal
2024-06-21 06:07:30 +02:00
parent 68b940fddd
commit 1746bb6442
2 changed files with 2 additions and 3 deletions

View File

@@ -56,7 +56,7 @@ public class ModpackInstaller(ModpackConfig updateConfig, ModpackInfo modpackInf
if (installInfos is not null && installInfos.Actions.Count != 0) if (installInfos is not null && installInfos.Actions.Count != 0)
{ {
var actions = installInfos.Actions.Where(n => n.Side.IsSide(options.Side) && (!n.IsExtra || updateConfig.AllowExtras)); var actions = installInfos.Actions.Where(n => n.Side.IsSide(options.Side));
if (actions.Any()) if (actions.Any())
{ {
result.Actions.AddRange(installInfos.Actions); result.Actions.AddRange(installInfos.Actions);
@@ -88,7 +88,7 @@ public class ModpackInstaller(ModpackConfig updateConfig, ModpackInfo modpackInf
foreach (var action in checkingVersion.Actions) foreach (var action in checkingVersion.Actions)
{ {
if (action.Side.IsSide(options.Side) && (!action.IsExtra || updateConfig.AllowExtras) && !result.Actions.Any(n => n.DestPath == action.DestPath)) if (action.Side.IsSide(options.Side) && !result.Actions.Any(n => n.DestPath == action.DestPath))
actionsToAdd.Add(action); actionsToAdd.Add(action);
} }

View File

@@ -7,5 +7,4 @@ public class InstallAction
public string DestPath { get; set; } public string DestPath { get; set; }
public string DownloadUrl { get; set; } public string DownloadUrl { get; set; }
public Side Side { get; set; } = Side.Both; public Side Side { get; set; } = Side.Both;
public bool IsExtra { get; set; }
} }