[PR #3221] [MERGED] Look up players teams by name for client-side pushes on servers #4853

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3221
Author: @1038april
Created: 10/28/2026
Status: ✅ Merged
Merged: 10/28/2026
Merged by: @Online5277

Base: main ← Head: fix/remote-team-push-names


📝 Commits (1)

  • 0291a58 Look up players' teams by name for client-side pushes on servers

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/remote.rs (+14 -9)

📄 Description

Bug

On a server whose teams set collisionRule never (Hypixel lobbies, for example), walking into another player makes the local player jitter and snap back.

remote_pushes gets teams from mob_teams(), which keys entities by their UUID text and the local player by PLAYER_NAME ("Player"). On a server, players are team members by their profile name (Player.getScoreboardName), so both lookups miss. Every player then counts as teamless, pushable_by falls back to always, and the client pushes the local player while the server applies no push and corrects the position.

Fix

In remote_pushes, look up the local player's team by profile_name (as perspective.rs already does) and other players' teams by their tab-list profile name. Other entities keep their UUID lookup through mob_teams. Boats use the same corrected local team.

Testing

  • Played on Hypixel with the same change on v0.2.93 (swapped into the launcher's install): walking into players in a lobby no longer jitters.
  • Not run: the vanilla harnesses (no game files on the machine that wrote this), and pr_ready.py. python3 tools/parity.py --changed origin/main should list what this touches; the change is in the game binary's multiplayer client only.

🔄 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/3221 **Author:** [@1038april](https://github.com/1038april) **Created:** 10/28/2026 **Status:** ✅ Merged **Merged:** 10/28/2026 **Merged by:** [@Online5277](https://github.com/Online5277) **Base:** `main` ← **Head:** `fix/remote-team-push-names` --- ### 📝 Commits (1) - [`0291a58`](https://github.com/horizon-rust/horizon/commit/0291a5864ffdaef21215ff0682a83ba5d1552094) Look up players' teams by name for client-side pushes on servers ### 📊 Changes **1 file changed** (+14 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+14 -9) </details> ### 📄 Description ## Bug On a server whose teams set `collisionRule never` (Hypixel lobbies, for example), walking into another player makes the local player jitter and snap back. `remote_pushes` gets teams from `mob_teams()`, which keys entities by their UUID text and the local player by `PLAYER_NAME` ("Player"). On a server, players are team members by their profile name (`Player.getScoreboardName`), so both lookups miss. Every player then counts as teamless, `pushable_by` falls back to `always`, and the client pushes the local player while the server applies no push and corrects the position. ## Fix In `remote_pushes`, look up the local player's team by `profile_name` (as `perspective.rs` already does) and other players' teams by their tab-list profile name. Other entities keep their UUID lookup through `mob_teams`. Boats use the same corrected local team. ## Testing - Played on Hypixel with the same change on v0.2.93 (swapped into the launcher's install): walking into players in a lobby no longer jitters. - Not run: the vanilla harnesses (no game files on the machine that wrote this), and `pr_ready.py`. `python3 tools/parity.py --changed origin/main` should list what this touches; the change is in the game binary's multiplayer client only. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:08:25 +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#4853
No description provided.