[GH-ISSUE #1315] [server-thread] Abandoned mining continues after death and breaks the block on respawn #354

Closed
opened 2026-11-02 15:38:26 +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/1315

Tested commit: 83fa14e51b.

  1. In survival, enable keep_inventory and set a respawn point near an obsidian block.
  2. Use a diamond pickaxe to start mining it for about half a second.
  3. Die (kill @s reproduces), release attack on the death screen, then respawn.
  4. Wait about 12 seconds without attacking. Repeat with each explicit mode flag.

Expected: death cancels mining; the block stays intact until a new attack.

Actual: threaded mode breaks the abandoned block after respawning. Old mode leaves it intact. Reproduced in two fresh paired runs; obsidian still exists before respawn. Authoritative execute if block checks confirm obsidian in old mode and air in threaded mode after settling, so this is not merely a client prediction or animation.

Hypothesis: per-guest mining state survives death/respawn, while the abort sent when the death screen opens is ignored for a dead guest.

Acceptance: death clears active/delayed mining; releasing attack before respawn cannot break the old target afterward. Fresh mining after respawn still works.

Evidence: tools/singleplayer_gaps_audit.py --case death-mining; traces/saves in .local/singleplayer-audit/gaps-{d,e}/, including authoritative predicates in gaps-e. Keep-inventory isolates this from #1284. No matching issue found.

Originally created by @rdbtCVS on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1315 Tested commit: 83fa14e51b89eab728b8e233e9e5d95296bef93d. 1. In survival, enable `keep_inventory` and set a respawn point near an obsidian block. 2. Use a diamond pickaxe to start mining it for about half a second. 3. Die (`kill @s` reproduces), release attack on the death screen, then respawn. 4. Wait about 12 seconds without attacking. Repeat with each explicit mode flag. Expected: death cancels mining; the block stays intact until a new attack. Actual: threaded mode breaks the abandoned block after respawning. Old mode leaves it intact. Reproduced in two fresh paired runs; obsidian still exists before respawn. Authoritative `execute if block` checks confirm obsidian in old mode and air in threaded mode after settling, so this is not merely a client prediction or animation. Hypothesis: per-guest mining state survives death/respawn, while the abort sent when the death screen opens is ignored for a dead guest. Acceptance: death clears active/delayed mining; releasing attack before respawn cannot break the old target afterward. Fresh mining after respawn still works. Evidence: `tools/singleplayer_gaps_audit.py --case death-mining`; traces/saves in `.local/singleplayer-audit/gaps-{d,e}/`, including authoritative predicates in `gaps-e`. Keep-inventory isolates this from #1284. No matching issue found.
Author
Owner

@socksprox commented on GitHub (Oct 27, 2026):

🤖 Agent: Fixed — 2898b4067 ("death forgets the digging", Oct 23) clears the abandoned dig state on death/respawn so the obsidian isn't broken after respawning. Your tested commit predates it. Suggest closing.

<!-- gh-comment-id:6443291546 --> @socksprox commented on GitHub (Oct 27, 2026): 🤖 Agent: Fixed — `2898b4067` ("death forgets the digging", Oct 23) clears the abandoned dig state on death/respawn so the obsidian isn't broken after respawning. Your tested commit predates it. Suggest closing.
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#354
No description provided.