[PR #4973] [MERGED] Retarget another thirteen ledger rows that are already ported #5981

Closed
opened 2026-11-03 05:16:23 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4973
Author: @MSedgeMC
Created: 10/31/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: chore/ledger-stale-rows-2


📝 Commits (1)

  • dd94337 Retarget another thirteen ledger rows that are already ported

📊 Changes

5 files changed (+13 additions, -13 deletions)

View changed files

📝 tools/port_map/animal-1.tsv (+2 -2)
📝 tools/port_map/game-007.tsv (+1 -1)
📝 tools/port_map/game-012.tsv (+6 -6)
📝 tools/port_map/game2-005.tsv (+1 -1)
📝 tools/port_map/game2-012.tsv (+3 -3)

📄 Description

Documentation only: tools/port_map/ verdicts, no Rust. A follow-up to #4546, which retargeted thirteen rows and merged; these are the next thirteen, found while checking gaps for fixes.

AGENTS.md sends every contributor to this ledger first. In one morning it sent me at five behaviours that already existed — the witch's magic resistance, the golem's creator rule and crack sound, the candle snuff, the villager's trade reach — so the rows that are wrong are not a cosmetic problem; they cost hours and, worse, they nearly produced five duplicate PRs.

row was now points at
IronGolem.canAttack missing mobs/goals.rs::Mob::spares_players (creator rule, e3fda9ce6)
IronGolem.hurtServer missing mobs.rs::Mob::damage_with (crackiness sound, d686f4b9d)
IronGolem.addAdditionalSaveData / readAdditionalSaveData missing entity_nbt.rs::mob_to_nbt / mob_from_nbt — PlayerCreated and persistent anger
IronGolem.isPlayerCreated / setPlayerCreated missing spares_players / game/golems.rs::check_golem_spawn
CandleBlock.useItemOn missing level/interact.rs::Sim::use_item_on (d21886b2f)
CandleCakeBlock.useItemOn, CandleCakeBlock.candleHit missing the same function (b82ebb226)
AbstractVillager.stillValid missing game/lan_trading.rs::Game::lan_merchant_tick (94eff2942)
BehaviorUtils.isOtherTargetMuchFurtherAwayThanCurrentAttackTarget missing mobs/piglin.rs::much_further_than_target
Allay.updateDynamicGameEventListener, Allay.addAdditionalSaveData inline/port notes rewritten: the listener exists (mobs/allay.rs::listen), the jukebox half is polled, and the listener data is saved

Two notes state a known hole rather than claiming completion, because a ledger that names a gap is worth more than one that says "done": IronGolem.canAttack does not filter creepers for the retaliation goal (vanilla does), and a candle cake's snuff draws no wick smoke. Both are small and separate.

Also worth recording: the villager row's "4 blocks" was only the padding. Vanilla's stillValid asks isWithinEntityInteractionRange(this, 4.0), and the interaction range is 3.0 survival and 5.0 in creative, so the screen closes at 7 and 9 blocks from the box — the note now says that.

Three rows deliberately left missing: MovingPistonBlock.getDrops, Pufferfish.readAdditionalSaveData and Enderman.addAdditionalSaveData are ported by PRs still open (#4964, #4969). Citing functions main does not have yet would make port_ledger.py check report a map gap, so they wait for their PRs — noted here so they are pending rather than forgotten.

Checked: all 713 rows in the five touched files still parse to 3–4 tab fields with a verdict from the allowed set, and every port/inline citation names a file that exists. port_ledger.py check needs a ledger build against .local vanilla data, which a fork checkout cannot produce, so the citations were verified by hand against the function bodies.


🔄 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/4973 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `chore/ledger-stale-rows-2` --- ### 📝 Commits (1) - [`dd94337`](https://github.com/horizon-rust/horizon/commit/dd94337c2eb195524b33cc8df6376f7fb114361c) Retarget another thirteen ledger rows that are already ported ### 📊 Changes **5 files changed** (+13 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/animal-1.tsv` (+2 -2) 📝 `tools/port_map/game-007.tsv` (+1 -1) 📝 `tools/port_map/game-012.tsv` (+6 -6) 📝 `tools/port_map/game2-005.tsv` (+1 -1) 📝 `tools/port_map/game2-012.tsv` (+3 -3) </details> ### 📄 Description Documentation only: `tools/port_map/` verdicts, no Rust. A follow-up to #4546, which retargeted thirteen rows and merged; these are the next thirteen, found while checking gaps for fixes. `AGENTS.md` sends every contributor to this ledger first. In one morning it sent me at five behaviours that already existed — the witch's magic resistance, the golem's creator rule and crack sound, the candle snuff, the villager's trade reach — so the rows that are wrong are not a cosmetic problem; they cost hours and, worse, they nearly produced five duplicate PRs. | row | was | now points at | |---|---|---| | `IronGolem.canAttack` | missing | `mobs/goals.rs::Mob::spares_players` (creator rule, `e3fda9ce6`) | | `IronGolem.hurtServer` | missing | `mobs.rs::Mob::damage_with` (crackiness sound, `d686f4b9d`) | | `IronGolem.addAdditionalSaveData` / `readAdditionalSaveData` | missing | `entity_nbt.rs::mob_to_nbt` / `mob_from_nbt` — `PlayerCreated` **and** persistent anger | | `IronGolem.isPlayerCreated` / `setPlayerCreated` | missing | `spares_players` / `game/golems.rs::check_golem_spawn` | | `CandleBlock.useItemOn` | missing | `level/interact.rs::Sim::use_item_on` (`d21886b2f`) | | `CandleCakeBlock.useItemOn`, `CandleCakeBlock.candleHit` | missing | the same function (`b82ebb226`) | | `AbstractVillager.stillValid` | missing | `game/lan_trading.rs::Game::lan_merchant_tick` (`94eff2942`) | | `BehaviorUtils.isOtherTargetMuchFurtherAwayThanCurrentAttackTarget` | missing | `mobs/piglin.rs::much_further_than_target` | | `Allay.updateDynamicGameEventListener`, `Allay.addAdditionalSaveData` | inline/port | notes rewritten: the listener exists (`mobs/allay.rs::listen`), the jukebox half is polled, and the listener data *is* saved | Two notes state a known hole rather than claiming completion, because a ledger that names a gap is worth more than one that says "done": `IronGolem.canAttack` does not filter creepers for the retaliation goal (vanilla does), and a candle cake's snuff draws no wick smoke. Both are small and separate. Also worth recording: the villager row's "4 blocks" was only the padding. Vanilla's `stillValid` asks `isWithinEntityInteractionRange(this, 4.0)`, and the interaction range is 3.0 survival and 5.0 in creative, so the screen closes at 7 and 9 blocks from the box — the note now says that. **Three rows deliberately left `missing`**: `MovingPistonBlock.getDrops`, `Pufferfish.readAdditionalSaveData` and `Enderman.addAdditionalSaveData` are ported by PRs still open (#4964, #4969). Citing functions main does not have yet would make `port_ledger.py check` report a map gap, so they wait for their PRs — noted here so they are pending rather than forgotten. **Checked:** all 713 rows in the five touched files still parse to 3–4 tab fields with a verdict from the allowed set, and every `port`/`inline` citation names a file that exists. `port_ledger.py check` needs a ledger build against `.local` vanilla data, which a fork checkout cannot produce, so the citations were verified by hand against the function bodies. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:16:23 +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#5981
No description provided.