[PR #7117] [MERGED] port map: game-010.tsv dolphin rows whose fixes already landed #7351

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

📋 Pull Request Information

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

Base: main ← Head: fix/ledger-game-010


📝 Commits (1)

  • 59a29e1 port map: game-010.tsv dolphin rows whose fixes already landed

📊 Changes

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

View changed files

📝 tools/port_map/game-010.tsv (+10 -10)

📄 Description

The dolphin's ItemGoal/MoveToItemGoal (notice an item in the water, swim to it, drop what it holds with a 40 tick pickup delay) and its GotFish/Moistness save.

Horizon's map still called all eight missing after the code landed: the pickup loop is game/foxes.rs::Game::tick_dolphins with mobs/dolphin.rs::set_item_at, the goals are mobs/dolphin.rs::MoveToItem and mobs/dolphin.rs::drop_item, and the two fields are written and read in entity_nbt.rs::mob_to_nbt and mob_from_nbt (Moistness defaults to 2400). Two unrelated rows, PathNavigation.shouldRecomputePath and AdultSensor.doTick, listed two functions in the where column, which map-check reads as one name and reports as dangling; they now name one function each, with the second kept in the note.

Proven: on the build VM, python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar then python3 tools/port_ledger.py map-check tools/port_map/game-010.tsv reports 131 rows, no problems.; before the change the same command reported the two dangling rows above.

Not proven: no code change, so nothing was run in the game; each where was read in the tree first (the doc comments of drop_item, MoveToItem and set_item_at name the vanilla methods they port, and entity_nbt.rs writes and reads GotFish/Moistness).

The rows left missing in the file (GroundPathNavigation.trimPath, PathNavigation.trimPath, LandRandomPos.getPosTowards, Bat.isFlapping, Dolphin.canAttack, AbstractChestedHorse.getSlot) are not touched here.


🔄 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/7117 **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:** `fix/ledger-game-010` --- ### 📝 Commits (1) - [`59a29e1`](https://github.com/horizon-rust/horizon/commit/59a29e1ca4b14fa6e0c5b79353b843a782cd29f7) port map: game-010.tsv dolphin rows whose fixes already landed ### 📊 Changes **1 file changed** (+10 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game-010.tsv` (+10 -10) </details> ### 📄 Description The dolphin's `ItemGoal`/`MoveToItemGoal` (notice an item in the water, swim to it, drop what it holds with a 40 tick pickup delay) and its `GotFish`/`Moistness` save. Horizon's map still called all eight `missing` after the code landed: the pickup loop is `game/foxes.rs::Game::tick_dolphins` with `mobs/dolphin.rs::set_item_at`, the goals are `mobs/dolphin.rs::MoveToItem` and `mobs/dolphin.rs::drop_item`, and the two fields are written and read in `entity_nbt.rs::mob_to_nbt` and `mob_from_nbt` (`Moistness` defaults to 2400). Two unrelated rows, `PathNavigation.shouldRecomputePath` and `AdultSensor.doTick`, listed two functions in the `where` column, which `map-check` reads as one name and reports as dangling; they now name one function each, with the second kept in the note. **Proven:** on the build VM, `python3 tools/port_ledger.py build --jar /data/home/horizon/.local/minecraft/26.3/jars/server.jar` then `python3 tools/port_ledger.py map-check tools/port_map/game-010.tsv` reports `131 rows, no problems.`; before the change the same command reported the two dangling rows above. **Not proven:** no code change, so nothing was run in the game; each `where` was read in the tree first (the doc comments of `drop_item`, `MoveToItem` and `set_item_at` name the vanilla methods they port, and `entity_nbt.rs` writes and reads `GotFish`/`Moistness`). The rows left `missing` in the file (`GroundPathNavigation.trimPath`, `PathNavigation.trimPath`, `LandRandomPos.getPosTowards`, `Bat.isFlapping`, `Dolphin.canAttack`, `AbstractChestedHorse.getSlot`) are not touched here. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:38:08 +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#7351
No description provided.