summaryrefslogtreecommitdiffstats
path: root/src/launcher/assets.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/launcher/assets.rs')
-rw-r--r--src/launcher/assets.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/launcher/assets.rs b/src/launcher/assets.rs
index 7ad368e..e732877 100644
--- a/src/launcher/assets.rs
+++ b/src/launcher/assets.rs
@@ -168,7 +168,10 @@ impl AssetRepository {
if let Some(expect) = index.sha1 {
let actual = Sha1::from(&idx_text).digest();
- return Err(AssetError::Integrity(IntegrityError::Sha1Mismatch { expect, actual }));
+
+ if actual != expect {
+ return Err(AssetError::Integrity(IntegrityError::Sha1Mismatch { expect, actual }));
+ }
}
debug!("Saving downloaded asset index to {}", path.display());