[PR #4950] [MERGED] Server: the newcomer doesn't read its own join line, as in vanilla #5966

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4950
Author: @rdbtCVS
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/own-join-line-parity


📝 Commits (1)

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

📊 Changes

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

View changed files

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

📄 Description

🤖 Opened by rdbtCVS's AI agent (Claude Code, Opus 5.5), not by rdbtCVS personally.

Fixes #4943.

#4634 made a joining player read its own "joined the game" line. Vanilla 26.3 doesn't, and since #4634 merged the dedicated_server and secure_chat harnesses fail on main and on every PR's parity job (e.g. #4927):

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

PlayerList.placeNewPlayer (python3 tools/rea_vanilla.py method net.minecraft.server.players.PlayerList placeNewPlayer):

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

The broadcast goes out before the player is in the list, so only the others read it. This reverts #4634's change in lan/hub.rs: the line goes to everyone but the newcomer, right after the recipe book, where it was before. The comment now cites the vanilla order. (Same fix as the closed #4937.)

Tests

  • python3 tools/parity.py dedicated_server secure_chat --fresh: 2 passed (both fail on main).
  • pr_ready --quick below. The one failing unit test, motion::tests::a_swimming_passenger_sits_up_even_when_standing_does_not_fit, also fails on a clean origin/main checkout when .local vanilla data is present (it passes without the data). It isn't related to this change.

pr_ready (tools/pr_ready.py --quick on archlinux, against origin/main at c829600ac, 6 min 36 s)

Check Result
Scope ✅ 2 files, +12 −6
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 486 passed (30 s)
rustfmt ✅ (7 s)
clippy ✅ (1 min 18 s)
tests: horizon-client ❌ 909 passed, 1 failed (4 min 29 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 ➖ 358 affected, to run in CI (--quick): active_effect_tick, active_effects, ambient_sound, anchor, arrow, attribute_health, attribute_map_queries, attribute, attribute_updates, audio_attributes, auto_jump, bamboo and 346 more
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

🤖 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/4950 **Author:** [@rdbtCVS](https://github.com/rdbtCVS) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/own-join-line-parity` --- ### 📝 Commits (1) - [`8d9d4d9`](https://github.com/horizon-rust/horizon/commit/8d9d4d94e36208e5789209448cb4dff2b22f2802) Server: the newcomer doesn't read its own join line, as in vanilla ### 📊 Changes **1 file changed** (+12 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/lan/hub.rs` (+12 -6) </details> ### 📄 Description > 🤖 Opened by rdbtCVS's AI agent (Claude Code, Opus 5.5), not by rdbtCVS personally. Fixes #4943. #4634 made a joining player read its own "joined the game" line. Vanilla 26.3 doesn't, and since #4634 merged the `dedicated_server` and `secure_chat` harnesses fail on main and on every PR's parity job (e.g. #4927): ``` dedicated-server-parity: 1 differing lines @@ -452,0 +453 @@ +play-start minecraft:system_chat sha=01a7e8c287457181 ``` `PlayerList.placeNewPlayer` (`python3 tools/rea_vanilla.py method net.minecraft.server.players.PlayerList placeNewPlayer`): ```java component = Component.translatable("multiplayer.player.joined", player.getDisplayName()); broadcastSystemMessage(component.withStyle(ChatFormatting.YELLOW), false); // line 38 ... this.players.add(player); // line 45 ``` The broadcast goes out before the player is in the list, so only the others read it. This reverts #4634's change in `lan/hub.rs`: the line goes to everyone but the newcomer, right after the recipe book, where it was before. The comment now cites the vanilla order. (Same fix as the closed #4937.) ## Tests - `python3 tools/parity.py dedicated_server secure_chat --fresh`: **2 passed** (both fail on main). - `pr_ready --quick` below. The one failing unit test, `motion::tests::a_swimming_passenger_sits_up_even_when_standing_does_not_fit`, also fails on a clean `origin/main` checkout when `.local` vanilla data is present (it passes without the data). It isn't related to this change. **pr_ready** (`tools/pr_ready.py --quick` on archlinux, against origin/main at c829600ac, 6 min 36 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +12 −6 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 486 passed (30 s) | | rustfmt | ✅ (7 s) | | clippy | ✅ (1 min 18 s) | | tests: horizon-client | ❌ 909 passed, 1 failed (4 min 29 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 | ➖ 358 affected, to run in CI (--quick): active_effect_tick, active_effects, ambient_sound, anchor, arrow, attribute_health, attribute_map_queries, attribute, attribute_updates, audio_attributes, auto_jump, bamboo and 346 more | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | 🤖 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:16 +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#5966
No description provided.