[GH-ISSUE #1298] [server-thread] Charged Nether respawn anchor is ignored after death #337

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/1298

Tested commit: 83fa14e51b. Related historical #99 concerns charging, rather than this respawn failure.

  1. Launch survival with --server-thread and enter the Nether.
  2. Place an anchor with one charge (tested with setblock 2 100 0 respawn_anchor[charges=1]), leave safe space beside it, and right-click it with an empty hand.
  3. Die, wait until Respawn is enabled, and click it.
  4. Repeat with --no-server-thread. Tests used render distance 4 in both modes.

Expected: respawn beside the Nether anchor and consume one charge.

Actual: threaded mode returns to Overworld world spawn and leaves the anchor charged. Old mode respawns beside it in the Nether and consumes its charge. A fresh paired reduction used an anchor at (2,100,0) with one charge: old respawned at (2.5,100,-0.5), charges=0; threaded returned to Overworld (0.5,-60,0.5), charges=1. Revisiting Nether and authoritative block checks confirmed the charge states. A separate threaded run reproduced the wrong destination.

Hypothesis: GuestSwap does not retain per-player respawn_config, while guest_respawn always selects Overworld.

Acceptance: threaded anchor respawn uses the valid charged Nether anchor, selects a safe adjacent position and consumes one charge.

Evidence: tools/singleplayer_code_audit.py --case anchor-respawn --render-distance 4; traces/saves in .local/singleplayer-audit/code-audit-d/anchor-respawn-*/. 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/1298 Tested commit: 83fa14e51b89eab728b8e233e9e5d95296bef93d. Related historical #99 concerns charging, rather than this respawn failure. 1. Launch survival with `--server-thread` and enter the Nether. 2. Place an anchor with one charge (tested with `setblock 2 100 0 respawn_anchor[charges=1]`), leave safe space beside it, and right-click it with an empty hand. 3. Die, wait until Respawn is enabled, and click it. 4. Repeat with `--no-server-thread`. Tests used render distance 4 in both modes. Expected: respawn beside the Nether anchor and consume one charge. Actual: threaded mode returns to Overworld world spawn and leaves the anchor charged. Old mode respawns beside it in the Nether and consumes its charge. A fresh paired reduction used an anchor at (2,100,0) with one charge: old respawned at (2.5,100,-0.5), charges=0; threaded returned to Overworld (0.5,-60,0.5), charges=1. Revisiting Nether and authoritative block checks confirmed the charge states. A separate threaded run reproduced the wrong destination. Hypothesis: `GuestSwap` does not retain per-player `respawn_config`, while `guest_respawn` always selects Overworld. Acceptance: threaded anchor respawn uses the valid charged Nether anchor, selects a safe adjacent position and consumes one charge. Evidence: `tools/singleplayer_code_audit.py --case anchor-respawn --render-distance 4`; traces/saves in `.local/singleplayer-audit/code-audit-d/anchor-respawn-*/`. Only read-only diagnostics were added.
Author
Owner

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

🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. Merged PR #1213 retains each guest's Nether respawn point and verifies respawning beside an anchor consumes a charge. Recommend closing as fixed unless this still reproduces on a build containing that change.

<!-- gh-comment-id:6418395104 --> @rdbtCVS commented on GitHub (Oct 26, 2026): 🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. Merged PR #1213 retains each guest's Nether respawn point and verifies respawning beside an anchor consumes a charge. Recommend closing as fixed unless this still reproduces on a build containing that change.
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#337
No description provided.