This commit is contained in:
huanghongxun
2020-03-22 13:12:39 +08:00
parent 516c73ee15
commit e166651fe7

View File

@@ -74,8 +74,10 @@ public class GameInstallTask extends Task<Version> {
Task.allOf( Task.allOf(
new GameAssetDownloadTask(dependencyManager, version, GameAssetDownloadTask.DOWNLOAD_INDEX_FORCIBLY, true), new GameAssetDownloadTask(dependencyManager, version, GameAssetDownloadTask.DOWNLOAD_INDEX_FORCIBLY, true),
new GameLibrariesTask(dependencyManager, version, true) new GameLibrariesTask(dependencyManager, version, true)
).withStage("hmcl.install.assets") ).withStage("hmcl.install.assets").withRunAsync(() -> {
).withComposeAsync(gameRepository.save(version))); // ignore failure
})
).thenComposeAsync(gameRepository.save(version)));
} }
} }