mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-09-17 07:47:57 -04:00
always download missing files for server modpack
This commit is contained in:
parent
7b987c9b95
commit
0cee859e15
@ -113,8 +113,9 @@ public class ServerModpackCompletionTask extends Task<Void> {
|
|||||||
// If old modpack does not have this entry, download it
|
// If old modpack does not have this entry, download it
|
||||||
download = true;
|
download = true;
|
||||||
} else if (!Files.exists(actualPath)) {
|
} else if (!Files.exists(actualPath)) {
|
||||||
// If both old and new modpacks have this entry, but the file is deleted by user, leave it missing.
|
// If both old and new modpacks have this entry, but the file is missing...
|
||||||
download = false;
|
// Re-download it since network problem may cause file missing
|
||||||
|
download = true;
|
||||||
} else {
|
} else {
|
||||||
// If user modified this entry file, we will not replace this file since this modified file is that user expects.
|
// If user modified this entry file, we will not replace this file since this modified file is that user expects.
|
||||||
String fileHash = encodeHex(digest("SHA-1", Files.newInputStream(actualPath)));
|
String fileHash = encodeHex(digest("SHA-1", Files.newInputStream(actualPath)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user