Skip to content

Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.

Launcher: a failed instances.json save is printed

Alexander Krylovf681e4bbdcdc
diff --git a/launcher/src/instances.rs b/launcher/src/instances.rs
index 8f1676e58..91ac9e548 100644
--- a/launcher/src/instances.rs
+++ b/launcher/src/instances.rs
@@ -311,7 +311,9 @@ fn list_in(game_home: &Path, data: &Path) -> Vec<Instance> {
.instances
.retain(|id, _| id == DEFAULT || id.contains(':') || own.contains(id));
if store.instances.len() != before {
- let _ = store.save(data);
+ if let Err(e) = store.save(data) {
+ eprintln!("Horizon: instances.json is not saved: {e}");
+ }
}
}
for slug in own {