[GH-ISSUE #1327] [both singleplayer modes] Saving during a fall discards accumulated fall distance #359

Closed
opened 2026-11-02 15:38:28 +07:00 by bsakaguchi · 0 comments
Owner

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

Tested commit: 83fa14e51b89eab728b8e233e9e5d95296bef93d. Affects explicit --no-server-thread and --server-thread (render distance 4).

  1. In survival with full health and no effects, fall from feet Y=118 onto a solid floor at Y=100.
  2. While still falling, pause, save/quit, and reopen the world.
  3. Land. Compare with the same fall saved/paused but resumed without exiting.

Expected: reloading preserves the accumulated fall distance; quitting midway must not reduce the landing damage. Native 26.3 Entity save/load writes and reads fall_distance.

Actual: uninterrupted controls finish at 5 health in both modes. Reloaded runs finish at 15 health old (saved Y=108.333) and 11 health threaded (saved Y=112.312). Both player files contain fall_distance: 0.0 during the fall. Different saved heights explain the different reduced damage; this is a shared persistence defect, not evidence of different fall physics.

Hypothesis: sync_level does not copy the live fall distance, and load_saved_state_once does not restore it.

Acceptance: save/reopen midway through the fall preserves accumulated distance and applies the full landing damage; uninterrupted behavior stays correct.

Evidence: tools/singleplayer_closure_audit.py --case fall-reopen --case fall-continuous --render-distance 4; traces, saved tags and health in .local/singleplayer-audit/closure-a/fall-*/. Read-only observer only. Existing-issue searches found no matching report.

Originally created by @rdbtCVS on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1327 Tested commit: `83fa14e51b89eab728b8e233e9e5d95296bef93d`. Affects explicit `--no-server-thread` and `--server-thread` (render distance 4). 1. In survival with full health and no effects, fall from feet Y=118 onto a solid floor at Y=100. 2. While still falling, pause, save/quit, and reopen the world. 3. Land. Compare with the same fall saved/paused but resumed without exiting. Expected: reloading preserves the accumulated fall distance; quitting midway must not reduce the landing damage. Native 26.3 Entity save/load writes and reads `fall_distance`. Actual: uninterrupted controls finish at **5 health in both modes**. Reloaded runs finish at **15 health** old (saved Y=108.333) and **11 health** threaded (saved Y=112.312). Both player files contain `fall_distance: 0.0` during the fall. Different saved heights explain the different reduced damage; this is a shared persistence defect, not evidence of different fall physics. Hypothesis: `sync_level` does not copy the live fall distance, and `load_saved_state_once` does not restore it. Acceptance: save/reopen midway through the fall preserves accumulated distance and applies the full landing damage; uninterrupted behavior stays correct. Evidence: `tools/singleplayer_closure_audit.py --case fall-reopen --case fall-continuous --render-distance 4`; traces, saved tags and health in `.local/singleplayer-audit/closure-a/fall-*/`. Read-only observer only. Existing-issue searches found no matching report.
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#359
No description provided.