[PR #6006] [MERGED] Port map: 27 rows that said missing are in the code #6605

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6006
Author: @xFedeT
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: chore/port-map-stale


📝 Commits (1)

  • c80a4f5 Port map: 27 rows that said missing are in the code

📊 Changes

19 files changed (+27 additions, -27 deletions)

View changed files

📝 tools/port_map/classes-01.tsv (+2 -2)
📝 tools/port_map/client-001.tsv (+1 -1)
📝 tools/port_map/client-003.tsv (+1 -1)
📝 tools/port_map/client-005.tsv (+2 -2)
📝 tools/port_map/client-006.tsv (+1 -1)
📝 tools/port_map/client2-016.tsv (+4 -4)
📝 tools/port_map/game-002.tsv (+1 -1)
📝 tools/port_map/game-009.tsv (+1 -1)
📝 tools/port_map/game-011.tsv (+1 -1)
📝 tools/port_map/game2-002.tsv (+1 -1)
📝 tools/port_map/game2-003.tsv (+3 -3)
📝 tools/port_map/game2-004.tsv (+1 -1)
📝 tools/port_map/game2-008.tsv (+2 -2)
📝 tools/port_map/game2-013.tsv (+1 -1)
📝 tools/port_map/game2-014.tsv (+1 -1)
📝 tools/port_map/game2-018.tsv (+1 -1)
📝 tools/port_map/rest-006.tsv (+1 -1)
📝 tools/port_map/rest-012.tsv (+1 -1)
📝 tools/port_map/rest-020.tsv (+1 -1)

📄 Description

🤖 Opened by xFedeT's AI agent (Claude Code, Claude Sonnet 5.5), not by xFedeT personally.

Part of #3912 and #3601. No game code changes.

27 rows of the port map said missing (with a player: note: "a player would see it") for methods the code already ports. I found them by searching the code for each of the 201 missing player: rows that the ledger finds no port for, by Class.method (63 are named in a comment), then reading each place. Each row is now port, inline or home, pointing at the fn or file that holds it: for example PiglinBrute.wantsToPickUp (mobs/equip.rs::wants_to_pick_up), ChatListener.evaluateTrustLevel (Game::chat_trust), Zoglin.getAmbientSound (mobs/ai.rs::play_ambient), Creaking.knockback (Mob::knockback), DriedGhastBlock.setPlacedBy (Sim::set_placed_by), ClientboundBossEventPacket.AddOperation.dispatch (BossOverlay::apply), PlayerList.broadcastSystemToTeam (Hub::system_message_to), the debug stick (game/debug_stick.rs), the game master block edit screens (game/block_editor.rs) and the spear goal (mobs/spear_use.rs).

port_ledger.py map-check on the whole map reports only rows that were already wrong on main (28 of them, none of these).

What this does not do

  • It does not run the game: I read each place in the code, not behaviour. A row that is port now can still have a gap in its note's sense; the old note is dropped with the verdict, so say so in a comment if you know of one.
  • The other 36 rows that name their method in a comment are left alone. For those I could not tell, from the comment, which fn is the port (a type, a test, or Game::new), or the note says more than one thing. SoundEngine.shouldChangeDevice is one: its fn is behind #[cfg(feature = "audio")], which map-check does not see.

🤖 Generated with Claude Code


🔄 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/6006 **Author:** [@xFedeT](https://github.com/xFedeT) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/port-map-stale` --- ### 📝 Commits (1) - [`c80a4f5`](https://github.com/horizon-rust/horizon/commit/c80a4f57d54cf76881826cb60da608a459f67930) Port map: 27 rows that said missing are in the code ### 📊 Changes **19 files changed** (+27 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/classes-01.tsv` (+2 -2) 📝 `tools/port_map/client-001.tsv` (+1 -1) 📝 `tools/port_map/client-003.tsv` (+1 -1) 📝 `tools/port_map/client-005.tsv` (+2 -2) 📝 `tools/port_map/client-006.tsv` (+1 -1) 📝 `tools/port_map/client2-016.tsv` (+4 -4) 📝 `tools/port_map/game-002.tsv` (+1 -1) 📝 `tools/port_map/game-009.tsv` (+1 -1) 📝 `tools/port_map/game-011.tsv` (+1 -1) 📝 `tools/port_map/game2-002.tsv` (+1 -1) 📝 `tools/port_map/game2-003.tsv` (+3 -3) 📝 `tools/port_map/game2-004.tsv` (+1 -1) 📝 `tools/port_map/game2-008.tsv` (+2 -2) 📝 `tools/port_map/game2-013.tsv` (+1 -1) 📝 `tools/port_map/game2-014.tsv` (+1 -1) 📝 `tools/port_map/game2-018.tsv` (+1 -1) 📝 `tools/port_map/rest-006.tsv` (+1 -1) 📝 `tools/port_map/rest-012.tsv` (+1 -1) 📝 `tools/port_map/rest-020.tsv` (+1 -1) </details> ### 📄 Description > 🤖 Opened by xFedeT's AI agent (Claude Code, Claude Sonnet 5.5), not by xFedeT personally. Part of #3912 and #3601. No game code changes. 27 rows of the port map said `missing` (with a `player:` note: "a player would see it") for methods the code already ports. I found them by searching the code for each of the 201 `missing player:` rows that the ledger finds no port for, by `Class.method` (63 are named in a comment), then reading each place. Each row is now `port`, `inline` or `home`, pointing at the fn or file that holds it: for example `PiglinBrute.wantsToPickUp` (`mobs/equip.rs::wants_to_pick_up`), `ChatListener.evaluateTrustLevel` (`Game::chat_trust`), `Zoglin.getAmbientSound` (`mobs/ai.rs::play_ambient`), `Creaking.knockback` (`Mob::knockback`), `DriedGhastBlock.setPlacedBy` (`Sim::set_placed_by`), `ClientboundBossEventPacket.AddOperation.dispatch` (`BossOverlay::apply`), `PlayerList.broadcastSystemToTeam` (`Hub::system_message_to`), the debug stick (`game/debug_stick.rs`), the game master block edit screens (`game/block_editor.rs`) and the spear goal (`mobs/spear_use.rs`). `port_ledger.py map-check` on the whole map reports only rows that were already wrong on `main` (28 of them, none of these). ## What this does not do - It does not run the game: I read each place in the code, not behaviour. A row that is `port` now can still have a gap in its note's sense; the old note is dropped with the verdict, so say so in a comment if you know of one. - The other 36 rows that name their method in a comment are left alone. For those I could not tell, from the comment, which fn is the port (a type, a test, or `Game::new`), or the note says more than one thing. `SoundEngine.shouldChangeDevice` is one: its fn is behind `#[cfg(feature = "audio")]`, which `map-check` does not see. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:23:42 +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#6605
No description provided.