[PR #3634] [MERGED] Launcher: Java instances' mods follow their loader, and copies keep it #5108

Closed
opened 2026-11-03 05:10:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3634
Author: @ludovic111
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ludovic111

Base: main ← Head: fix/launcher-java-loader-follow-ups


📝 Commits (1)

  • a7e279c Launcher: Java instances' mods follow their loader, and copies keep theirs

📊 Changes

6 files changed (+62 additions, -5 deletions)

View changed files

📝 launcher/src/cli.rs (+2 -1)
📝 launcher/src/instances.rs (+2 -2)
📝 launcher/src/instances/tests.rs (+23 -0)
📝 launcher/src/loaders.rs (+8 -0)
📝 launcher/src/other_launchers.rs (+18 -2)
📝 launcher/src/other_launchers/tests.rs (+9 -0)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

Connects the three Java instance PRs that just merged (#3603, #3612, #3619):

  • JavaGame::target now carries the instance's loader. Before, every instance looked vanilla to the browser, and mods were refused. mods search|install|update --instance <java instance> now finds and installs the mods made for its version and loader. A Quilt instance also takes Fabric mods.
  • instance copy-from gives the new instance the Fabric or Quilt loader the other launcher used, at the same version. A NeoForge or Forge instance is still copied, and the CLI says its loader isn't installed yet.
  • loaders::Kind::id gives the loader's lowercase name (fabric, quilt).

Checked live in a scratch home: a Fabric 1.21.1 instance, mods install modmenu brought Fabric API and Text Placeholder API as required dependencies, checksums verified. A fixture Prism Quilt instance was copied with Quilt 0.30.1.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at 64990cd32, 2 min 32 s)

Check Result
Scope ✅ 6 files, +62 −5
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 408 passed (2 min 25 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (1 s)
launcher clippy ✅ (1 s)
launcher tests ✅ 266 passed (4 s)
Parity ➖ 1 affected, to run in CI (--quick): lan_integration
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3634 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/launcher-java-loader-follow-ups` --- ### 📝 Commits (1) - [`a7e279c`](https://github.com/horizon-rust/horizon/commit/a7e279cfed122fdfe20eb1e01ffe6a8fa8f8c319) Launcher: Java instances' mods follow their loader, and copies keep theirs ### 📊 Changes **6 files changed** (+62 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/cli.rs` (+2 -1) 📝 `launcher/src/instances.rs` (+2 -2) 📝 `launcher/src/instances/tests.rs` (+23 -0) 📝 `launcher/src/loaders.rs` (+8 -0) 📝 `launcher/src/other_launchers.rs` (+18 -2) 📝 `launcher/src/other_launchers/tests.rs` (+9 -0) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. Connects the three Java instance PRs that just merged (#3603, #3612, #3619): - `JavaGame::target` now carries the instance's loader. Before, every instance looked vanilla to the browser, and mods were refused. `mods search|install|update --instance <java instance>` now finds and installs the mods made for its version and loader. A Quilt instance also takes Fabric mods. - `instance copy-from` gives the new instance the Fabric or Quilt loader the other launcher used, at the same version. A NeoForge or Forge instance is still copied, and the CLI says its loader isn't installed yet. - `loaders::Kind::id` gives the loader's lowercase name (`fabric`, `quilt`). Checked live in a scratch home: a Fabric 1.21.1 instance, `mods install modmenu` brought Fabric API and Text Placeholder API as required dependencies, checksums verified. A fixture Prism Quilt instance was copied with Quilt 0.30.1. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at 64990cd32, 2 min 32 s) | Check | Result | | --- | --- | | Scope | ✅ 6 files, +62 −5 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 408 passed (2 min 25 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (1 s) | | launcher clippy | ✅ (1 s) | | launcher tests | ✅ 266 passed (4 s) | | Parity | ➖ 1 affected, to run in CI (--quick): lan_integration | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:10:17 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5108
No description provided.