[PR #7068] [MERGED] Correct three stale classes-09.tsv rows #7311

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

📋 Pull Request Information

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

Base: main ← Head: chore/ledger-classes-09-w


📝 Commits (2)

📊 Changes

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

View changed files

📝 tools/port_map/classes-09.tsv (+3 -3)

📄 Description

Three rows of tools/port_map/classes-09.tsv no longer matched the tree.

Verdicts corrected:

  • HitResult.distanceTo -> game/fishing.rs::rebound, from missing: the bobber
    does bounce back off a block, velocity.normalize().scale(hit.distance_squared(at))
    as FishingHook.onHitBlock does, called on the block hit and covered by a test in
    the same file. The old note said Horizon's bobber does not bounce.
  • Vec2.rotate -> mobs/sulfur_cube.rs::rotate, from skip:other: that helper's doc
    cites the method and does the rotation, x cos - y sin and x sin + y cos in
    floats. The other Vec2 rows keep their skip:other: nothing else in the tree
    cites them.
  • ToggleTooltips -> home crates/horizon-client/src/game/commands/items.rs, from
    missing: the minecraft:toggle_tooltips arm of the item-modify path writes the
    tooltip_display component's hide_tooltip and hidden_components as run does.
    The loot-table run still has no arm for it, and no vanilla loot table uses it.

Left alone, still absent: SetWritableBookPagesFunction, SetWrittenBookPagesFunction,
EntityHasScoreCondition, EnvironmentAttributeCheck.test, TimeCheck,
StoredNumberAccess and the storage, scoreboard and environment-attribute providers
(no vanilla loot table names any of them: none of the 1447 tables in the 26.3 server
jar mention toggle_tooltips, set_writable_book_pages, set_written_book_pages,
entity_scores, time_check, environment_attribute or storage providers);
BlockHitResult.hitBorder (BlockHit still has no border flag); and
MinecartCollisionContext (no rail or slope exclusion in minecarts.rs).

python3 tools/port_ledger.py map-check tools/port_map/classes-09.tsv: 156 rows, no problems.

Proven: ledger built here from the 26.3 client and server jars at main; every
row's vanilla class, method and cited Rust fn resolve, each claim is read from the
function the row names, and the data claims are greps over the server jar's loot
tables.

Not proven: no in-game check of a bobber on a wall; 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/7068 **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-classes-09-w` --- ### 📝 Commits (2) - [`e275e07`](https://github.com/horizon-rust/horizon/commit/e275e07726dad770ff5646f6510dee27225bdf11) port map: three rows classes-09 had wrong - [`56d9b22`](https://github.com/horizon-rust/horizon/commit/56d9b22e43312655d71acb38f0999afb5794b8e0) Merge main into #7068 ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/classes-09.tsv` (+3 -3) </details> ### 📄 Description Three rows of `tools/port_map/classes-09.tsv` no longer matched the tree. Verdicts corrected: - `HitResult.distanceTo` -> `game/fishing.rs::rebound`, from `missing`: the bobber does bounce back off a block, `velocity.normalize().scale(hit.distance_squared(at))` as `FishingHook.onHitBlock` does, called on the block hit and covered by a test in the same file. The old note said Horizon's bobber does not bounce. - `Vec2.rotate` -> `mobs/sulfur_cube.rs::rotate`, from `skip:other`: that helper's doc cites the method and does the rotation, `x cos - y sin` and `x sin + y cos` in floats. The other `Vec2` rows keep their `skip:other`: nothing else in the tree cites them. - `ToggleTooltips` -> `home crates/horizon-client/src/game/commands/items.rs`, from `missing`: the `minecraft:toggle_tooltips` arm of the item-modify path writes the `tooltip_display` component's `hide_tooltip` and `hidden_components` as `run` does. The loot-table run still has no arm for it, and no vanilla loot table uses it. Left alone, still absent: `SetWritableBookPagesFunction`, `SetWrittenBookPagesFunction`, `EntityHasScoreCondition`, `EnvironmentAttributeCheck.test`, `TimeCheck`, `StoredNumberAccess` and the storage, scoreboard and environment-attribute providers (no vanilla loot table names any of them: none of the 1447 tables in the 26.3 server jar mention `toggle_tooltips`, `set_writable_book_pages`, `set_written_book_pages`, `entity_scores`, `time_check`, `environment_attribute` or storage providers); `BlockHitResult.hitBorder` (`BlockHit` still has no border flag); and `MinecartCollisionContext` (no rail or slope exclusion in `minecarts.rs`). `python3 tools/port_ledger.py map-check tools/port_map/classes-09.tsv`: `156 rows, no problems.` **Proven:** ledger built here from the 26.3 client and server jars at `main`; every row's vanilla class, method and cited Rust fn resolve, each claim is read from the function the row names, and the data claims are greps over the server jar's loot tables. **Not proven:** no in-game check of a bobber on a wall; 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:37:32 +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#7311
No description provided.