[PR #2648] [MERGED] Treat single player as a local server for the tab list and F3 charts #4503

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

📋 Pull Request Information

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

Base: main ← Head: fix/local-server-checks


📝 Commits (1)

  • 008c4f9 Treat single player as a local server for the tab list and F3 charts

📊 Changes

2 files changed (+4 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/game/debug_keys.rs (+3 -2)
📝 crates/horizon-client/src/game/scoreboard.rs (+1 -1)

📄 Description

What and why

In single player the client talks to its own server through memory, so remote is set. The tab list and the F3 screen treated that as a network server. Now they ask has_singleplayer_server(), which is the same as vanilla's isLocalServer().

  • Holding Tab alone in single player shows nothing, as in vanilla.
  • F3 reads "fps + tps" and "Ping", and F3+3 draws no bandwidth chart.

Vanilla reference

  • Hud.extractTabList hides the list when isLocalServer(), one listed player and no list objective.
  • DebugScreenOverlay uses getSingleplayerServer() != null for "fps + tps" and isLocalServer() for "Ping" versus "Bandwidth + Ping" and the bandwidth chart.

Self-check

cargo check -p horizon-client passes.


🔄 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/2648 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/local-server-checks` --- ### 📝 Commits (1) - [`008c4f9`](https://github.com/horizon-rust/horizon/commit/008c4f91cdd86513118c2001844550c29653674a) Treat single player as a local server for the tab list and F3 charts ### 📊 Changes **2 files changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/debug_keys.rs` (+3 -2) 📝 `crates/horizon-client/src/game/scoreboard.rs` (+1 -1) </details> ### 📄 Description ## What and why In single player the client talks to its own server through memory, so `remote` is set. The tab list and the F3 screen treated that as a network server. Now they ask `has_singleplayer_server()`, which is the same as vanilla's `isLocalServer()`. - Holding Tab alone in single player shows nothing, as in vanilla. - F3 reads "fps + tps" and "Ping", and F3+3 draws no bandwidth chart. ## Vanilla reference - `Hud.extractTabList` hides the list when `isLocalServer()`, one listed player and no list objective. - `DebugScreenOverlay` uses `getSingleplayerServer() != null` for "fps + tps" and `isLocalServer()` for "Ping" versus "Bandwidth + Ping" and the bandwidth chart. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:17:38 +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#4503
No description provided.