[PR #6864] [MERGED] Clear two rest-002 rows: the input predicate and the durability trigger #7155

Closed
opened 2026-11-03 06:34:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6864
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/ledger-rest-002


📝 Commits (1)

  • 55e1564 Clear two rest-002 rows: the input predicate and the durability trigger

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 tools/port_map/rest-002.tsv (+2 -2)

📄 Description

Two tools/port_map/rest-002.tsv rows said missing for behaviour current main has:

  • InputPredicate.matches -> advancements.rs::input: the player predicate's sneak input is
    compared with the player's own. The row keeps the rest as a gap: forward, back, jump and
    sprint have no source here yet and count as unconstrained.
  • ItemDurabilityTrigger.trigger -> game/advancements.rs::Game::trigger_item_durability:
    item_durability_changed fires with the item, the remaining durability (maxDamage - newDamage)
    and the damage taken, from an enchantment's durability loss and a mount's riding wear.

Proven: python3 tools/port_ledger.py map-check tools/port_map/rest-002.tsv on the build VM -
149 rows, no problems. Each claim is from reading the function named in the row and its callers.

Not proven: no in-game check; these are ledger verdicts, not behaviour changes.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/6864 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/ledger-rest-002` --- ### 📝 Commits (1) - [`55e1564`](https://github.com/horizon-rust/horizon/commit/55e1564629dd2e92e2cb0cd3c1db132fc5b73a83) Clear two rest-002 rows: the input predicate and the durability trigger ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-002.tsv` (+2 -2) </details> ### 📄 Description Two `tools/port_map/rest-002.tsv` rows said `missing` for behaviour current `main` has: - `InputPredicate.matches` -> `advancements.rs::input`: the player predicate's `sneak` input is compared with the player's own. The row keeps the rest as a gap: `forward`, `back`, `jump` and `sprint` have no source here yet and count as unconstrained. - `ItemDurabilityTrigger.trigger` -> `game/advancements.rs::Game::trigger_item_durability`: `item_durability_changed` fires with the item, the remaining durability (`maxDamage - newDamage`) and the damage taken, from an enchantment's durability loss and a mount's riding wear. **Proven:** `python3 tools/port_ledger.py map-check tools/port_map/rest-002.tsv` on the build VM - `149 rows, no problems.` Each claim is from reading the function named in the row and its callers. **Not proven:** no in-game check; these are ledger verdicts, not behaviour changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:34:55 +07:00
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#7155
No description provided.