[GH-ISSUE #1339] [both singleplayer modes] New dimensions ignore disabled natural health regeneration #372

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

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

Tested commit: 83fa14e51b89eab728b8e233e9e5d95296bef93d, explicit --no-server-thread and --server-thread, render distance 4.

  1. Set gamerule natural_health_regeneration false in the Overworld, with full food/saturation and no effects.
  2. Take 4 generic damage and wait: health correctly remains 16.
  3. Heal, travel to a newly opened Nether, settle on a safe platform, then take 4 damage and wait 200 ticks.
  4. In the Nether, toggle regeneration true, then false, heal and repeat the damage.

Expected: the global false rule prevents regeneration in every dimension.

Actual in both modes: the Nether query still reports false, but health regenerates 16 → 20. After toggling true/false in that dimension, it stays at 16. The corrected fresh pair has matching health, terrain and mode controls; earlier runs independently exposed unwanted healing.

Hypothesis: a new World keeps default health_rules, while sync_rules updates only the active world when a rule changes. Repeating false alone is rejected as unchanged and does not repair the cache.

Acceptance: all dimensions honor the configured rule on creation and after changes.

Evidence: tools/singleplayer_closure_audit.py --case regeneration-travel; .local/singleplayer-audit/closure-h/regeneration-travel-*/. No matching issue found.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1339 Tested commit: `83fa14e51b89eab728b8e233e9e5d95296bef93d`, explicit `--no-server-thread` and `--server-thread`, render distance 4. 1. Set `gamerule natural_health_regeneration false` in the Overworld, with full food/saturation and no effects. 2. Take 4 generic damage and wait: health correctly remains 16. 3. Heal, travel to a newly opened Nether, settle on a safe platform, then take 4 damage and wait 200 ticks. 4. In the Nether, toggle regeneration true, then false, heal and repeat the damage. Expected: the global false rule prevents regeneration in every dimension. Actual in both modes: the Nether query still reports **false**, but health regenerates **16 → 20**. After toggling true/false in that dimension, it stays at 16. The corrected fresh pair has matching health, terrain and mode controls; earlier runs independently exposed unwanted healing. Hypothesis: a new `World` keeps default `health_rules`, while `sync_rules` updates only the active world when a rule changes. Repeating false alone is rejected as unchanged and does not repair the cache. Acceptance: all dimensions honor the configured rule on creation and after changes. Evidence: `tools/singleplayer_closure_audit.py --case regeneration-travel`; `.local/singleplayer-audit/closure-h/regeneration-travel-*/`. No matching issue found.
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#372
No description provided.