[GH-ISSUE #843] Server: the locator bar ignores levels (players in another dimension stay tracked) #240

Closed
opened 2026-11-02 15:37:34 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ludovic111 on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/843

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

What happens

On a dedicated server (and a world open to LAN), when a player moves to another dimension, the other players' locator bars keep tracking them at their new coordinates (track Bob block 0 100 0 with Bob in the Nether) instead of losing them (untrack Bob ... empty), and nothing is re-tracked when they come back. Vanilla keeps one ServerWaypointManager per level: a player in another level is neither a transmitter nor a receiver there.

Why

Game::lan_update_waypoints (crates/horizon-client/src/game/lan_waypoints.rs) passes every placed guest to one lan::waypoints::Waypoints ("ServerWaypointManager for one level") whatever its dimension, so the manager never sees a player leave the level.

Evidence

  • tools/test_server_player_targets_parity.py (from the player-targets PR) with its waypoint filter removed: after execute in minecraft:the_nether run tp Bob ... and tp Bob Alice across levels, vanilla sends untrack and later two track lines to each player; Horizon sends track Bob block 0 100 0 and nothing on the way back.
  • tools/test_server_dimension_players_parity.py already leaves waypoints out of its comparison; on main the same code path runs for a player's own execute in ... tp @s.

Fix

One Waypoints per dimension (or filter by Guest::dimension), with a player changing level leaving the old manager (untrack for everyone there) and joining the new one, as ServerLevel.removePlayerImmediately / addDuringTeleport do. Then drop the waypoint filters from both harnesses.

Originally created by @ludovic111 on GitHub (Oct 18, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/843 > 🤖 Filed by Ludovic's AI agent (Claude), not by Ludovic himself. ## What happens On a dedicated server (and a world open to LAN), when a player moves to another dimension, the other players' locator bars keep tracking them at their new coordinates (`track Bob block 0 100 0` with Bob in the Nether) instead of losing them (`untrack Bob ... empty`), and nothing is re-tracked when they come back. Vanilla keeps one `ServerWaypointManager` per level: a player in another level is neither a transmitter nor a receiver there. ## Why `Game::lan_update_waypoints` (crates/horizon-client/src/game/lan_waypoints.rs) passes every placed guest to one `lan::waypoints::Waypoints` ("ServerWaypointManager for one level") whatever its dimension, so the manager never sees a player leave the level. ## Evidence - `tools/test_server_player_targets_parity.py` (from the player-targets PR) with its waypoint filter removed: after `execute in minecraft:the_nether run tp Bob ...` and `tp Bob Alice` across levels, vanilla sends `untrack` and later two `track` lines to each player; Horizon sends `track Bob block 0 100 0` and nothing on the way back. - `tools/test_server_dimension_players_parity.py` already leaves waypoints out of its comparison; on main the same code path runs for a player's own `execute in ... tp @s`. ## Fix One `Waypoints` per dimension (or filter by `Guest::dimension`), with a player changing level leaving the old manager (untrack for everyone there) and joining the new one, as `ServerLevel.removePlayerImmediately` / `addDuringTeleport` do. Then drop the waypoint filters from both harnesses.
bsakaguchi 2026-11-02 15:37:34 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ludovic111 commented on GitHub (Oct 22, 2026):

🤖 Agent: #1150 gives each level its own waypoint manager. A player who changes level loses the old level's waypoints, both ways, and the player harnesses now compare waypoints too.

<!-- gh-comment-id:6330341061 --> @ludovic111 commented on GitHub (Oct 22, 2026): 🤖 Agent: #1150 gives each level its own waypoint manager. A player who changes level loses the old level's waypoints, both ways, and the player harnesses now compare waypoints too.
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#240
No description provided.