[PR #4937] [CLOSED] Server: the newcomer doesn't read its own join line, as in vanilla #5955

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4937
Author: @ludovic111
Created: 10/31/2026
Status: ❌ Closed

Base: main ← Head: fix/join-message-order


📝 Commits (1)

  • 85bfd11 Server: the newcomer doesn't read its own join line, as in vanilla

📊 Changes

1 file changed (+9 additions, -6 deletions)

View changed files

📝 crates/horizon-client/src/lan/hub.rs (+9 -6)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

#4634 (for #4536) made a joining player read its own "joined the game" line. Vanilla 26.3 doesn't do that, and the dedicated_server harness has failed on main since it merged:

dedicated-server-parity: 1 differing lines
@@ -452,0 +453 @@
+play-start minecraft:system_chat sha=01a7e8c287457181

PlayerList.placeNewPlayer (server-game.jar, rea_vanilla.py method net.minecraft.server.players.PlayerList placeNewPlayer):

sendPlayerPermissionLevel(player);
...
component = Component.translatable("multiplayer.player.joined", player.getDisplayName());
broadcastSystemMessage(component.withStyle(ChatFormatting.YELLOW), false);
...
this.players.add(player);

The broadcast goes out before the player joins the list, so everyone else reads the line and the newcomer doesn't. The real server's packets in the harness agree: no system_chat reaches the joining client. The vanilla client never adds the line itself either: in client.jar, only PlayerList uses multiplayer.player.joined. This PR moves the line back to where it was: to the others only, right after the recipe book. The console line (dedicated::player_joined) doesn't change.

cc @cryingtoilet (#4634): the issue's "like in vanilla" doesn't hold for 26.3. If the player saw their own line somewhere, it was another server or version.

Tests

  • python3 tools/parity.py dedicated_server --fresh: fails on main (the line above), passes here.
  • In the lan_integration log, the host still reads "Guest joined the game" when the guest joins. I stopped the full suite early: its failures by then (consume-release, sprint-hit-slowdown, wind_burst_player, boat_input_latch) are combat and vehicles, not chat.

pr_ready

Check Result
Scope ✅ 1 files, +9 −6
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 486 passed (49 s)
rustfmt ✅ (4 s)
clippy ✅ (9 s)
tests: horizon-client ❌ 899 passed, 1 failed (1 min 26 s)
doc tests ✅ 0 passed (1 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ 33 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, forced_end, friends_integration, hardcore_respawn, lan_integration, locator_bar and 21 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The failing test, motion::tests::a_swimming_passenger_sits_up_even_when_standing_does_not_fit, comes from #4662 and fails on main whenever .local data is present. Reported on #4662; not touched here.

🤖 Generated with Claude Code


🔄 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/4937 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/31/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/join-message-order` --- ### 📝 Commits (1) - [`85bfd11`](https://github.com/horizon-rust/horizon/commit/85bfd116a754a93756a43c2ab80e6dc267c29a8c) Server: the newcomer doesn't read its own join line, as in vanilla ### 📊 Changes **1 file changed** (+9 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/lan/hub.rs` (+9 -6) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. #4634 (for #4536) made a joining player read its own "joined the game" line. Vanilla 26.3 doesn't do that, and the `dedicated_server` harness has failed on main since it merged: ``` dedicated-server-parity: 1 differing lines @@ -452,0 +453 @@ +play-start minecraft:system_chat sha=01a7e8c287457181 ``` `PlayerList.placeNewPlayer` (server-game.jar, `rea_vanilla.py method net.minecraft.server.players.PlayerList placeNewPlayer`): ``` sendPlayerPermissionLevel(player); ... component = Component.translatable("multiplayer.player.joined", player.getDisplayName()); broadcastSystemMessage(component.withStyle(ChatFormatting.YELLOW), false); ... this.players.add(player); ``` The broadcast goes out before the player joins the list, so everyone else reads the line and the newcomer doesn't. The real server's packets in the harness agree: no `system_chat` reaches the joining client. The vanilla client never adds the line itself either: in client.jar, only `PlayerList` uses `multiplayer.player.joined`. This PR moves the line back to where it was: to the others only, right after the recipe book. The console line (`dedicated::player_joined`) doesn't change. cc @cryingtoilet (#4634): the issue's "like in vanilla" doesn't hold for 26.3. If the player saw their own line somewhere, it was another server or version. ## Tests - `python3 tools/parity.py dedicated_server --fresh`: **fails on main** (the line above), **passes here**. - In the `lan_integration` log, the host still reads "Guest joined the game" when the guest joins. I stopped the full suite early: its failures by then (consume-release, sprint-hit-slowdown, wind_burst_player, boat_input_latch) are combat and vehicles, not chat. ## pr_ready | Check | Result | | --- | --- | | Scope | ✅ 1 files, +9 −6 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 486 passed (49 s) | | rustfmt | ✅ (4 s) | | clippy | ✅ (9 s) | | tests: horizon-client | ❌ 899 passed, 1 failed (1 min 26 s) | | doc tests | ✅ 0 passed (1 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ 33 affected, to run in CI (--quick): block_removal, command_exec, composter, crafter, cursor_death, dedicated_server, dispenser, forced_end, friends_integration, hardcore_respawn, lan_integration, locator_bar and 21 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The failing test, `motion::tests::a_swimming_passenger_sits_up_even_when_standing_does_not_fit`, comes from #4662 and fails on main whenever `.local` data is present. Reported on #4662; not touched here. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:16:12 +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#5955
No description provided.