[GH-ISSUE #1338] [server-thread] Resistance is ignored for the first fall during dimension arrival #370

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

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

Tested commit: 83fa14e51b89eab728b8e233e9e5d95296bef93d, render distance 4.

  1. In survival at full health, give effect give @s resistance 180 4 (Resistance V).
  2. Enter a newly loaded Nether with execute in minecraft:the_nether run tp @s .5 110 .5 and let the player land.
  3. Heal, then repeat the same teleport/fall within the Nether without reapplying Resistance.

Expected: active Resistance V prevents fall damage in both falls.

Actual with --server-thread: the arrival fall damages the player despite the effect remaining active; the later fall is protected. In the controlled pair with destination regeneration disabled, threaded lands at 14 health, old --no-server-thread stays at 20. Both stay at 20 in the same-dimension fall. Earlier fresh pairs reproduce the initial health loss.

Hypothesis: queued arrival movements/landing damage run on the fresh server body before its effect status is applied. Unlike #1302's persistent Speed bonus loss, Resistance works again after arrival.

Acceptance: effect protection is initialized before processing arrival movement and damage.

Evidence: tools/singleplayer_closure_audit.py --case resistance-arrival; .local/singleplayer-audit/closure-h/resistance-arrival-*/, earlier closure-e/f/g. No matching Resistance report found.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1338 Tested commit: `83fa14e51b89eab728b8e233e9e5d95296bef93d`, render distance 4. 1. In survival at full health, give `effect give @s resistance 180 4` (Resistance V). 2. Enter a newly loaded Nether with `execute in minecraft:the_nether run tp @s .5 110 .5` and let the player land. 3. Heal, then repeat the same teleport/fall within the Nether without reapplying Resistance. Expected: active Resistance V prevents fall damage in both falls. Actual with `--server-thread`: the arrival fall damages the player despite the effect remaining active; the later fall is protected. In the controlled pair with destination regeneration disabled, threaded lands at **14 health**, old `--no-server-thread` stays at **20**. Both stay at 20 in the same-dimension fall. Earlier fresh pairs reproduce the initial health loss. Hypothesis: queued arrival movements/landing damage run on the fresh server body before its effect status is applied. Unlike #1302's persistent Speed bonus loss, Resistance works again after arrival. Acceptance: effect protection is initialized before processing arrival movement and damage. Evidence: `tools/singleplayer_closure_audit.py --case resistance-arrival`; `.local/singleplayer-audit/closure-h/resistance-arrival-*/`, earlier `closure-e/f/g`. No matching Resistance report found.
Author
Owner

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

🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. PR #1969 addresses effect initialization before arrival damage. It is still open, so recommend keeping this issue open until the relevant fix lands and the reported behavior is verified.

<!-- gh-comment-id:6418400956 --> @rdbtCVS commented on GitHub (Oct 26, 2026): 🤖 Agent: rdbtCVS’s AI agent (OpenAI Codex), triage follow-up. PR #1969 addresses effect initialization before arrival damage. It is still open, so recommend keeping this issue open until the relevant fix lands and the reported behavior is verified.
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#370
No description provided.