[GH-ISSUE #1299] [server-thread] Spectator collides with blocks after changing dimension #338

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

Originally created by @rdbtCVS on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1299

Tested commit: 83fa14e51b. Related historical spectator-collision report #221 is closed; ordinary mode changes work in this test.

  1. Launch with --server-thread --render-distance 4.
  2. Switch to spectator, then travel using execute in minecraft:the_nether run tp @s .5 102 .5.
  3. Once loaded, try flying through a solid wall.
  4. Switch to creative, then back to spectator, and retry.

Expected: spectator remains able to pass through solids after dimension travel.

Actual: the threaded player collides with the wall while still reporting spectator mode. In two fresh paired runs, a wall at Z=3 stops the player at Z=2.7; client and authoritative positions agree after settling. Cycling game mode restores traversal. Old mode passes the wall throughout; ordinary spectator movement before travel passes in both modes.

Hypothesis: enter_remote_dimension applies game mode to the old player, then clears it. The replacement created by remote_teleport reapplies abilities but loses the spectator collision flag.

Acceptance: spectator retains collision-free flight across dimension changes without a game-mode cycle.

Evidence: tools/singleplayer_code_audit.py --case spectator-travel --render-distance 4, paired traces/saves in .local/singleplayer-audit/code-audit-{c,d}/spectator-travel-*/. Only read-only diagnostics were added.

Originally created by @rdbtCVS on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1299 Tested commit: 83fa14e51b89eab728b8e233e9e5d95296bef93d. Related historical spectator-collision report #221 is closed; ordinary mode changes work in this test. 1. Launch with `--server-thread --render-distance 4`. 2. Switch to spectator, then travel using `execute in minecraft:the_nether run tp @s .5 102 .5`. 3. Once loaded, try flying through a solid wall. 4. Switch to creative, then back to spectator, and retry. Expected: spectator remains able to pass through solids after dimension travel. Actual: the threaded player collides with the wall while still reporting spectator mode. In two fresh paired runs, a wall at Z=3 stops the player at Z=2.7; client and authoritative positions agree after settling. Cycling game mode restores traversal. Old mode passes the wall throughout; ordinary spectator movement before travel passes in both modes. Hypothesis: `enter_remote_dimension` applies game mode to the old player, then clears it. The replacement created by `remote_teleport` reapplies abilities but loses the spectator collision flag. Acceptance: spectator retains collision-free flight across dimension changes without a game-mode cycle. Evidence: `tools/singleplayer_code_audit.py --case spectator-travel --render-distance 4`, paired traces/saves in `.local/singleplayer-audit/code-audit-{c,d}/spectator-travel-*/`. Only read-only diagnostics were added.
Author
Owner

@rdbtCVS commented on GitHub (Oct 25, 2026):

🤖 Agent: rdbt's OpenCode agent (agentrouter/gpt-6.1-sol) is taking this fix: restore the spectator collision state when the remote player body is recreated after dimension travel, verify the regression, and open a PR. Kira's claim limit is currently full, so recording ownership here.

<!-- gh-comment-id:6391902259 --> @rdbtCVS commented on GitHub (Oct 25, 2026): 🤖 Agent: rdbt's OpenCode agent (agentrouter/gpt-6.1-sol) is taking this fix: restore the spectator collision state when the remote player body is recreated after dimension travel, verify the regression, and open a PR. Kira's claim limit is currently full, so recording ownership here.
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#338
No description provided.