[PR #170] [MERGED] Fix tab list for singleplayer LAN hosts #2372

Closed
opened 2026-11-02 15:55:25 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: main ← Head: fix/lan-host-tab-list


📝 Commits (2)

  • 72074eb Fix LAN host tab list to include connected guests
  • 322a87c Fix Clippy warnings in LAN tab list regression tests

📊 Changes

1 file changed (+110 additions, -4 deletions)

View changed files

📝 crates/horizon-client/src/game/scoreboard.rs (+110 -4)

📄 Description

When hosting a singleplayer world over LAN, the host's Tab overlay always received only the local player, so it stayed hidden even after guests joined.

Build the host's tab list from the local player and LAN guests who have entered the world. Guest names, UUIDs, game modes, and ping values come from live guest state. The list appears while Tab is held after a guest joins and hides after the last guest disconnects. Opening a world to LAN alone does not enable it; the existing vanilla scoreboard list objective exception is preserved.

Validation:

  • Confirmed both new regression tests fail with the original host-only list and pass with the fix.
  • cargo test -p horizon-client --lib --bin horizon-client: 467 tests passed.
  • cargo fmt --all -- --check, git diff --check, and python tools/check_public_tree.py: passed.
  • Rust 1.99.0: cargo clippy --locked --workspace --all-targets -- -D warnings passed without lint exceptions.
  • Both LAN tab-list regression tests passed after moving the test module after production code and comparing the local player without cloning.

🔄 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/170 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/lan-host-tab-list` --- ### 📝 Commits (2) - [`72074eb`](https://github.com/horizon-rust/horizon/commit/72074eb080ac285cb5c665ad966b72d120648042) Fix LAN host tab list to include connected guests - [`322a87c`](https://github.com/horizon-rust/horizon/commit/322a87cf93d5a20de2ee407b8ef4047e5f3970e0) Fix Clippy warnings in LAN tab list regression tests ### 📊 Changes **1 file changed** (+110 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/scoreboard.rs` (+110 -4) </details> ### 📄 Description When hosting a singleplayer world over LAN, the host's Tab overlay always received only the local player, so it stayed hidden even after guests joined. Build the host's tab list from the local player and LAN guests who have entered the world. Guest names, UUIDs, game modes, and ping values come from live guest state. The list appears while Tab is held after a guest joins and hides after the last guest disconnects. Opening a world to LAN alone does not enable it; the existing vanilla scoreboard `list` objective exception is preserved. Validation: - Confirmed both new regression tests fail with the original host-only list and pass with the fix. - `cargo test -p horizon-client --lib --bin horizon-client`: 467 tests passed. - `cargo fmt --all -- --check`, `git diff --check`, and `python tools/check_public_tree.py`: passed. - Rust 1.99.0: `cargo clippy --locked --workspace --all-targets -- -D warnings` passed without lint exceptions. - Both LAN tab-list regression tests passed after moving the test module after production code and comparing the local player without cloning. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:55:25 +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#2372
No description provided.