[PR #2405] [MERGED] Show join and leave messages in a LAN host's own chat #4284

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

📋 Pull Request Information

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

Base: main ← Head: fix/lan-join-leave-host-chat


📝 Commits (1)

  • 8a309c3 Show join and leave messages in a LAN host's own chat

📊 Changes

1 file changed (+17 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/lan.rs (+17 -0)

📄 Description

What and why

When you open a world to LAN, the guests saw "X joined the game" and "X left the game", but the host never did. The hub only sends those two messages to the guests, and the host's own chat was only told about them on dedicated servers (in the log).

The host now gets both lines in its own chat, in yellow with the player's team-coloured name, when a guest joins or leaves.

The multiplayer.player.joined.renamed variant (a player whose name changed since the last visit) is not part of this change. Horizon has no user cache on the LAN path to tell that a name changed.

Vanilla reference

  • PlayerList.placeNewPlayer: multiplayer.player.joined in yellow, broadcast to everyone already in the player list.
  • ServerGamePacketListenerImpl.removePlayerFromWorld: multiplayer.player.left in yellow, broadcast before the player is removed.

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/2405 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/lan-join-leave-host-chat` --- ### 📝 Commits (1) - [`8a309c3`](https://github.com/horizon-rust/horizon/commit/8a309c393dcff4adf462bebc6a9c3e23c65ee8de) Show join and leave messages in a LAN host's own chat ### 📊 Changes **1 file changed** (+17 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/lan.rs` (+17 -0) </details> ### 📄 Description ## What and why When you open a world to LAN, the guests saw "X joined the game" and "X left the game", but the host never did. The hub only sends those two messages to the guests, and the host's own chat was only told about them on dedicated servers (in the log). The host now gets both lines in its own chat, in yellow with the player's team-coloured name, when a guest joins or leaves. The `multiplayer.player.joined.renamed` variant (a player whose name changed since the last visit) is not part of this change. Horizon has no user cache on the LAN path to tell that a name changed. ## Vanilla reference - `PlayerList.placeNewPlayer`: `multiplayer.player.joined` in yellow, broadcast to everyone already in the player list. - `ServerGamePacketListenerImpl.removePlayerFromWorld`: `multiplayer.player.left` in yellow, broadcast before the player is removed. ## 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:03 +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#4284
No description provided.