[PR #2411] [MERGED] Send the host's death and advancement messages to guests and follow team visibility #4290

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2411
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: fix/death-advancement-messages-to-guests


📝 Commits (2)

  • 5b066b1 Send the host's death and advancement messages to guests and follow team visibility
  • eff8ae4 Merge main into fix/death-advancement-messages-to-guests

📊 Changes

5 files changed (+69 additions, -17 deletions)

View changed files

📝 crates/horizon-client-core/src/scoreboard.rs (+16 -4)
📝 crates/horizon-client/src/game/advancements.rs (+11 -4)
📝 crates/horizon-client/src/game/chat.rs (+13 -3)
📝 crates/horizon-client/src/game/lan_actions.rs (+17 -6)
📝 crates/horizon-client/src/lan/hub.rs (+12 -0)

📄 Description

What and why

In a LAN world:

  • When the host died or got an advancement, the guests never saw the chat line. The host's code only wrote it to its own chat.
  • A death message was dropped for everyone as soon as the dying player's team used "hide for other teams" or "hide for own team". Vanilla still shows it to the right players: team mates only for the first, everyone outside the team for the second.

Now the host's death and advancement messages are sent to the guests, and a death message follows the team rule for the host and for every guest. The host's advancement line also uses the team-coloured name, like a guest's.

Vanilla reference

  • ServerPlayer.die: broadcastSystemMessage, PlayerList.broadcastSystemToTeam (team mates except the dying player) and PlayerList.broadcastSystemToAllExceptTeam, picked by Team.getDeathMessageVisibility.
  • PlayerAdvancements.award: PlayerList.broadcastSystemMessage of the announcement to everyone.

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/2411 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/death-advancement-messages-to-guests` --- ### 📝 Commits (2) - [`5b066b1`](https://github.com/horizon-rust/horizon/commit/5b066b1b78aae89f587c4e9abc22b7fb205413ee) Send the host's death and advancement messages to guests and follow team visibility - [`eff8ae4`](https://github.com/horizon-rust/horizon/commit/eff8ae41c6e0cdd6dd5a2d428b787c7ee7667524) Merge main into fix/death-advancement-messages-to-guests ### 📊 Changes **5 files changed** (+69 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-core/src/scoreboard.rs` (+16 -4) 📝 `crates/horizon-client/src/game/advancements.rs` (+11 -4) 📝 `crates/horizon-client/src/game/chat.rs` (+13 -3) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+17 -6) 📝 `crates/horizon-client/src/lan/hub.rs` (+12 -0) </details> ### 📄 Description ## What and why In a LAN world: - When the host died or got an advancement, the guests never saw the chat line. The host's code only wrote it to its own chat. - A death message was dropped for everyone as soon as the dying player's team used "hide for other teams" or "hide for own team". Vanilla still shows it to the right players: team mates only for the first, everyone outside the team for the second. Now the host's death and advancement messages are sent to the guests, and a death message follows the team rule for the host and for every guest. The host's advancement line also uses the team-coloured name, like a guest's. ## Vanilla reference - `ServerPlayer.die`: `broadcastSystemMessage`, `PlayerList.broadcastSystemToTeam` (team mates except the dying player) and `PlayerList.broadcastSystemToAllExceptTeam`, picked by `Team.getDeathMessageVisibility`. - `PlayerAdvancements.award`: `PlayerList.broadcastSystemMessage` of the announcement to everyone. ## 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:16:06 +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#4290
No description provided.