[PR #7307] [MERGED] Repair five client-004 ledger citations that named no fn #7480

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

📋 Pull Request Information

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

Base: main ← Head: chore/fix-citations-client-004


📝 Commits (1)

  • 901cec2 Name the fn each client-004 row ports

📊 Changes

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

View changed files

📝 tools/port_map/client-004.tsv (+5 -5)

📄 Description

Five rows in tools/port_map/client-004.tsv named a where cell that port_ledger.py map-check could not resolve (no fn): a bare file, a parenthetical branch note, a two-fn slash and one more bare file. Each now names the single function that implements the method.

row before now cites
12 EndermanRenderer.getRenderOffset crates/horizon-client/src/mobs/render.rs crates/horizon-client/src/mobs/render.rs::enderman_render_offset — the random side offset of a creepy enderman
68 IronGolemRenderer.setupRotations ...::base_transform_at (IronGolem branch) crates/horizon-client/src/mobs/render.rs::base_transform_at — the Species::IronGolem block inside it is the 6.5-degree triangle wave over a 13-block walk phase
99 PhantomRenderer.scale ...::species_scale (Species::Phantom) crates/horizon-client/src/mobs/render.rs::species_scale — its Species::Phantom arm is 1 + 0.15 * size with the model's 1.3125 offset
110 PufferfishRenderer.setupRotations ...::pufferfish_bob / pufferfish_bob_y crates/horizon-client/src/mobs/render.rs::pufferfish_bob — the translate that bobs the fish; pufferfish_bob_y is only its scalar helper
135 TippableArrowRenderer.extractRenderState crates/horizon-client/src/projectiles.rs crates/horizon-client/src/projectiles.rs::Projectile::arrow_effect_color — brewing::potion_color over the arrow's tipped pickup item

No verdict changed: all five rows keep port and the note they had, since each fn above exists and carries the behaviour the note describes.

Validation, against a build of upstream/main with both 26.3 jars:

$ PORT_LEDGER_OUT=/tmp/led-repair python3 tools/port_ledger.py map-check tools/port_map/client-004.tsv
149 rows, no problems.

Proven: every cited path::fn resolves in the tree, and the fn holds the branch, constant or helper the row's note names.

Not proven: that the ports are otherwise complete — no row here was re-read against the bytecode; verdicts and notes are as they were.

These cells were written before map-check was run over the verdict map, which is why a bare file, a parenthetical and a two-name cell could sit in the where column without anything flagging that they resolved to nothing.


🔄 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/7307 **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/fix-citations-client-004` --- ### 📝 Commits (1) - [`901cec2`](https://github.com/horizon-rust/horizon/commit/901cec2b31bcbc2279ad38001e0142aa1c414fe8) Name the fn each client-004 row ports ### 📊 Changes **1 file changed** (+5 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/client-004.tsv` (+5 -5) </details> ### 📄 Description Five rows in `tools/port_map/client-004.tsv` named a `where` cell that `port_ledger.py map-check` could not resolve (`no fn`): a bare file, a parenthetical branch note, a two-fn slash and one more bare file. Each now names the single function that implements the method. | row | before | now cites | | --- | --- | --- | | 12 `EndermanRenderer.getRenderOffset` | `crates/horizon-client/src/mobs/render.rs` | `crates/horizon-client/src/mobs/render.rs::enderman_render_offset` — the random side offset of a creepy enderman | | 68 `IronGolemRenderer.setupRotations` | `...::base_transform_at (IronGolem branch)` | `crates/horizon-client/src/mobs/render.rs::base_transform_at` — the `Species::IronGolem` block inside it is the 6.5-degree triangle wave over a 13-block walk phase | | 99 `PhantomRenderer.scale` | `...::species_scale (Species::Phantom)` | `crates/horizon-client/src/mobs/render.rs::species_scale` — its `Species::Phantom` arm is `1 + 0.15 * size` with the model's 1.3125 offset | | 110 `PufferfishRenderer.setupRotations` | `...::pufferfish_bob / pufferfish_bob_y` | `crates/horizon-client/src/mobs/render.rs::pufferfish_bob` — the translate that bobs the fish; `pufferfish_bob_y` is only its scalar helper | | 135 `TippableArrowRenderer.extractRenderState` | `crates/horizon-client/src/projectiles.rs` | `crates/horizon-client/src/projectiles.rs::Projectile::arrow_effect_color` — `brewing::potion_color` over the arrow's tipped pickup item | No verdict changed: all five rows keep `port` and the note they had, since each fn above exists and carries the behaviour the note describes. Validation, against a build of `upstream/main` with both 26.3 jars: ``` $ PORT_LEDGER_OUT=/tmp/led-repair python3 tools/port_ledger.py map-check tools/port_map/client-004.tsv 149 rows, no problems. ``` **Proven:** every cited `path::fn` resolves in the tree, and the fn holds the branch, constant or helper the row's note names. **Not proven:** that the ports are otherwise complete — no row here was re-read against the bytecode; verdicts and notes are as they were. These cells were written before `map-check` was run over the verdict map, which is why a bare file, a parenthetical and a two-name cell could sit in the `where` column without anything flagging that they resolved to nothing. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:40:00 +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#7480
No description provided.