From 71f0ffde4bf15a0d7b06a25a9bc4890ae0af344b Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Sun, 25 Oct 2026 17:31:44 +0100 Subject: [PATCH] Prepare: a launcher's rewritten version file falls back to Mojang's (#1772) Launchers like HMCL rewrite versions//.json in the official layout (same jars and libraries, their own fields), and horizon-prepare refused it as a version Mojang may have republished. Mojang's copy saved as the imported manifest.json is now used instead, and without one the error says the launcher may have rewritten it and how to get Mojang's. Co-Authored-By: Claude Opus 5.5 --- crates/horizon-prepare/src/artifacts.rs | 67 ++++++++++++++++++++++--- 1 file changed, 60 insertions(+), 7 deletions(-) diff --git a/crates/horizon-prepare/src/artifacts.rs b/crates/horizon-prepare/src/artifacts.rs index 805dd80d4..bd22df079 100644 --- a/crates/horizon-prepare/src/artifacts.rs +++ b/crates/horizon-prepare/src/artifacts.rs @@ -199,13 +199,22 @@ pub(crate) fn import_manifest(lock: &Lock, minecraft: &Path) -> Result