[PR #2649] [MERGED] Show the sleeping players count on the action bar of a LAN host or server #4504

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/2649
Author: @kacpherek
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/sleep-status-overlay


📝 Commits (2)

  • 6b1d376 Show the sleeping players count on the action bar of a LAN host or server
  • d6ecd23 Merge main into fix/sleep-status-overlay

📊 Changes

3 files changed (+71 additions, -6 deletions)

View changed files

📝 crates/horizon-client/src/game.rs (+6 -0)
📝 crates/horizon-client/src/game/lan_actions.rs (+58 -6)
📝 crates/horizon-client/src/lan/hub.rs (+7 -0)

📄 Description

What and why

On a LAN host or a dedicated server, nobody saw how many players were in bed. Vanilla shows "n/m players sleeping" on the action bar when someone gets in or out of bed, or when a player joins or leaves while someone sleeps. Once enough players sleep it shows "Sleeping through this night".

Horizon now tracks the same counts every tick and sends that message to the host window and to all guests when the counts change. A single-player world that is not opened to LAN shows nothing, as in vanilla. Waking everyone at the end of the night does not send a message, as in vanilla.

Vanilla reference

  • ServerLevel.announceSleepStatus and updateSleepingPlayerList
  • SleepStatus.update and removeAllSleepers
  • ServerLevel.wakeUpAllPlayers

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/2649 **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/sleep-status-overlay` --- ### 📝 Commits (2) - [`6b1d376`](https://github.com/horizon-rust/horizon/commit/6b1d376e6f1fa7d75aabb7e0014e5c56caf2d708) Show the sleeping players count on the action bar of a LAN host or server - [`d6ecd23`](https://github.com/horizon-rust/horizon/commit/d6ecd23a6e6be4d6d6b2f66d4306680540ef2ba9) Merge main into fix/sleep-status-overlay ### 📊 Changes **3 files changed** (+71 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+6 -0) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+58 -6) 📝 `crates/horizon-client/src/lan/hub.rs` (+7 -0) </details> ### 📄 Description ## What and why On a LAN host or a dedicated server, nobody saw how many players were in bed. Vanilla shows "n/m players sleeping" on the action bar when someone gets in or out of bed, or when a player joins or leaves while someone sleeps. Once enough players sleep it shows "Sleeping through this night". Horizon now tracks the same counts every tick and sends that message to the host window and to all guests when the counts change. A single-player world that is not opened to LAN shows nothing, as in vanilla. Waking everyone at the end of the night does not send a message, as in vanilla. ## Vanilla reference - `ServerLevel.announceSleepStatus` and `updateSleepingPlayerList` - `SleepStatus.update` and `removeAllSleepers` - `ServerLevel.wakeUpAllPlayers` ## 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#4504
No description provided.