@@ -300,11 +300,13 @@ public final class RemoteMod {
|
||||
|
||||
public FileDownloadTask.IntegrityCheck getIntegrityCheck() {
|
||||
if (hashes.containsKey("md5")) {
|
||||
return new FileDownloadTask.IntegrityCheck("MD5", hashes.get("sha1"));
|
||||
return new FileDownloadTask.IntegrityCheck("MD5", hashes.get("md5"));
|
||||
} else if (hashes.containsKey("sha1")) {
|
||||
return new FileDownloadTask.IntegrityCheck("SHA-1", hashes.get("sha1"));
|
||||
} else if (hashes.containsKey("sha256")) {
|
||||
return new FileDownloadTask.IntegrityCheck("SHA-256", hashes.get("sha256"));
|
||||
} else if (hashes.containsKey("sha512")) {
|
||||
return new FileDownloadTask.IntegrityCheck("SHA-256", hashes.get("sha1"));
|
||||
return new FileDownloadTask.IntegrityCheck("SHA-512", hashes.get("sha512"));
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user