completely revert extra property
This commit is contained in:
@@ -56,7 +56,7 @@ public class ModpackInstaller(ModpackConfig updateConfig, ModpackInfo modpackInf
|
||||
|
||||
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())
|
||||
{
|
||||
result.Actions.AddRange(installInfos.Actions);
|
||||
@@ -88,7 +88,7 @@ public class ModpackInstaller(ModpackConfig updateConfig, ModpackInfo modpackInf
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
@@ -7,5 +7,4 @@ public class InstallAction
|
||||
public string DestPath { get; set; }
|
||||
public string DownloadUrl { get; set; }
|
||||
public Side Side { get; set; } = Side.Both;
|
||||
public bool IsExtra { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user