fix: preserve instance state through launches and updates

This commit is contained in:
objz committed 2026-10-01 17:44:34 +02:00
1 parent 3149b96971
commit 0d1cafcb10
14 files changed
+741 -94

No files matched your search

+2 -2
View File
@@ -213,6 +213,8 @@ async fn install_staged(
});
}
let previous =
ContentManifest::load(manifest_path).map_err(|error| NetError::Parse(error.to_string()))?;
let mut committed = Vec::new();
for (index, file) in staged.iter().enumerate() {
let item = &plan.items[file.item];
@@ -241,8 +243,6 @@ async fn install_staged(
});
}
let previous =
ContentManifest::load(manifest_path).map_err(|error| NetError::Parse(error.to_string()))?;
let records = match build_records(plan, &previous, minecraft_dir, &staged) {
Ok(records) => records,
Err(error) => {