Support download modpack from direct download url

This commit is contained in:
huanghongxun
2019-11-08 16:36:15 +08:00
parent f133fcf66c
commit 177935241f
7 changed files with 177 additions and 1 deletions

View File

@@ -323,7 +323,7 @@ public class FileDownloadTask extends Task<Void> {
if (temp != null)
temp.toFile().delete();
exception = e;
Logging.LOG.log(Level.WARNING, "Failed to download " + url + ", repeat times: " + repeat + 1, e);
Logging.LOG.log(Level.WARNING, "Failed to download " + url + ", repeat times: " + (repeat + 1), e);
} finally {
closeFiles();
}