[PR #3725] [MERGED] Launcher: a server's Join starts a Java instance into it #5173

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

📋 Pull Request Information

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

Base: main ← Head: feat/launcher-java-join


📝 Commits (2)

  • f2337d0 Launcher: a server's Join starts a Java instance into it
  • 89f4b34 Merge remote-tracking branch 'origin/main' into feat/launcher-java-join

📊 Changes

2 files changed (+22 additions, -8 deletions)

View changed files

📝 launcher/src/main.rs (+21 -7)
📝 launcher/src/multiplayer_page.rs (+1 -1)

📄 Description

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

The last Java-instance gap on the list: the Join button.

Before: Home's Multiplayer list showed a Java instance's servers, but Join was greyed out, because every shortcut was limited to Horizon instances.

Now:

  • Join is available whenever Play is (no game running or starting).
  • It starts the Java instance straight into that server, with the server support from #3688: --quickPlayMultiplayer since 23w14a, --server/--port before.
  • Opening a world and a friend's code stay Horizon-only.
  • The start path is the same as Play's, so the owner gate (account::java_player) runs first. Without a signed-in account that owns Java Edition, nothing starts and nothing is downloaded.

Checked by hand in scratch homes:

  • a Fabric 1.21.1 instance with "Test server" (play.example.com) added through multiplayer add;
  • Home showed Join enabled for it;
  • clicking Join opened the "Sign in with a Microsoft account that owns Minecraft: Java Edition to play." dialog;
  • no version jar or assets appeared anywhere in the scratch homes.

Joining a real server needs a signed-in owner, which this machine's scratch setup doesn't have.

Nothing here runs per frame beyond one Option check per server row, so I didn't time it.

pr_ready (tools/pr_ready.py --quick on ludovics-mac-mini, against origin/main at a3b4d135a, 3 min 52 s)

Check Result
Scope ✅ 2 files, +22 −8
Cargo.lock ✅ unchanged
Public tree ✅ (1 s)
Python tests ✅ 416 passed (3 min 41 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 ✅ (4 s)
launcher clippy ✅ (2 s)
launcher tests ✅ 271 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/3725 **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:** `feat/launcher-java-join` --- ### 📝 Commits (2) - [`f2337d0`](https://github.com/horizon-rust/horizon/commit/f2337d0a7399a1372f1fe02d3f8b4327b3dd6af5) Launcher: a server's Join starts a Java instance into it - [`89f4b34`](https://github.com/horizon-rust/horizon/commit/89f4b34c1f62d03792c9bf093e2810e6a3b8c0f6) Merge remote-tracking branch 'origin/main' into feat/launcher-java-join ### 📊 Changes **2 files changed** (+22 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `launcher/src/main.rs` (+21 -7) 📝 `launcher/src/multiplayer_page.rs` (+1 -1) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. The last Java-instance gap on the list: the **Join** button. **Before:** Home's Multiplayer list showed a Java instance's servers, but Join was greyed out, because every shortcut was limited to Horizon instances. **Now:** - Join is available whenever Play is (no game running or starting). - It starts the Java instance straight into that server, with the server support from #3688: `--quickPlayMultiplayer` since 23w14a, `--server/--port` before. - Opening a world and a friend's code stay Horizon-only. - The start path is the same as Play's, so the owner gate (`account::java_player`) runs first. Without a signed-in account that owns Java Edition, nothing starts and nothing is downloaded. **Checked by hand** in scratch homes: - a Fabric 1.21.1 instance with "Test server" (`play.example.com`) added through `multiplayer add`; - Home showed Join enabled for it; - clicking Join opened the "Sign in with a Microsoft account that owns Minecraft: Java Edition to play." dialog; - no version jar or assets appeared anywhere in the scratch homes. Joining a real server needs a signed-in owner, which this machine's scratch setup doesn't have. Nothing here runs per frame beyond one `Option` check per server row, so I didn't time it. **pr_ready** (`tools/pr_ready.py --quick` on ludovics-mac-mini, against origin/main at a3b4d135a, 3 min 52 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +22 −8 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ (1 s) | | Python tests | ✅ 416 passed (3 min 41 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 | ✅ (4 s) | | launcher clippy | ✅ (2 s) | | launcher tests | ✅ 271 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:44 +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#5173
No description provided.