summaryrefslogtreecommitdiffstats
path: root/src/launcher/assets.rs
diff options
context:
space:
mode:
authorLibravatar bigfoot547 <[email protected]>2025-01-16 19:58:49 -0600
committerLibravatar bigfoot547 <[email protected]>2025-01-16 19:58:49 -0600
commit55e314f513cdfb3ba33089621d460cfa925c20b2 (patch)
tree4447c7c8cff91960ef033c74367251efb19379e7 /src/launcher/assets.rs
parentremove idea files (diff)
start on extracting libraries
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());