include extras
This commit is contained in:
@@ -39,10 +39,13 @@ public class ModpackInstaller(ModpackConfig updateConfig, ModpackInfo modpackInf
|
||||
|
||||
public async Task<UpdateCheckResult> Check(UpdateCheckOptions options)
|
||||
{
|
||||
var result = new UpdateCheckResult();
|
||||
var hasConfig = modpackInfo.Exists;
|
||||
InstallInfos installInfos = null;
|
||||
UpdateInfos updateInfos = null;
|
||||
var hasConfig = modpackInfo.Exists;
|
||||
var result = new UpdateCheckResult
|
||||
{
|
||||
HasExtras = options.IncludeExtraActions
|
||||
};
|
||||
|
||||
if (updateConfig.Maintenance && !options.IgnoreMaintenance)
|
||||
{
|
||||
@@ -174,6 +177,7 @@ public class ModpackInstaller(ModpackConfig updateConfig, ModpackInfo modpackInf
|
||||
// Save new modpack info
|
||||
modpackInfo.Version = checkResult.LatestVersion;
|
||||
modpackInfo.ConfigUrl = updateConfig.ConfigUrl;
|
||||
modpackInfo.IncludeExtras = checkResult.HasExtras;
|
||||
modpackInfo.Save();
|
||||
|
||||
// Delete cached zip files
|
||||
|
||||
Reference in New Issue
Block a user