[PR #7097] [MERGED] Port map: four rest-012 packet rows name the functions they mean #7335

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

📋 Pull Request Information

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

Base: main ← Head: chore/port-map-rest-012


📝 Commits (1)

  • 68eede4 Port map: four rest-012 packet rows name the functions they mean

📊 Changes

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

View changed files

📝 tools/port_map/rest-012.tsv (+4 -4)

📄 Description

Four rows in this file had a where column that map-check cannot resolve, so the file failed the ledger check:

  • ClientboundAddTransientBlockPacket.write held a path with a code excerpt in it (game/remote.rs: C::AddTransientBlock => add_transient_block) and said the client applies the packet - it does, and the writer is crates/horizon-client/src/game/transient_blocks.rs::Game::add_transient_block, called when the block is placed and again on the tick it goes back to air.
  • ClientboundBlockEntityDataPacket.create pointed at two call sites (command_blocks.rs:952 + game/decorated_pot.rs) instead of the sender: crates/horizon-client/src/lan/hub.rs::Hub::broadcast_block_changes sends every changed block entity of the tick's block updates, a decorated pot's tag coming from its chunk's saved data.
  • ClientboundSetPlayerTeamPacket.createAddOrModifyPacket and createPlayerPacket named crates/horizon-client/src/lan/scoreboard.rs:124 and the bare file; both are built by crates/horizon-client/src/lan/scoreboard.rs::View::changes, which sends a team's method and parameters before its players and every leave before any join.

Proven: python3 tools/port_ledger.py map-check tools/port_map/rest-012.tsv -> 149 rows, no problems. (before this change the same command reported these four rows).
Not proven: no fresh ledger rebuild, and no behaviour changed so nothing was run in the game.


🔄 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/7097 **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/port-map-rest-012` --- ### 📝 Commits (1) - [`68eede4`](https://github.com/horizon-rust/horizon/commit/68eede4deb4e05f1e7c6bd3992e3763dcd69dbc9) Port map: four rest-012 packet rows name the functions they mean ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-012.tsv` (+4 -4) </details> ### 📄 Description Four rows in this file had a `where` column that `map-check` cannot resolve, so the file failed the ledger check: - `ClientboundAddTransientBlockPacket.write` held a path with a code excerpt in it (`game/remote.rs: C::AddTransientBlock => add_transient_block`) and said the client applies the packet - it does, and the writer is `crates/horizon-client/src/game/transient_blocks.rs::Game::add_transient_block`, called when the block is placed and again on the tick it goes back to air. - `ClientboundBlockEntityDataPacket.create` pointed at two call sites (`command_blocks.rs:952 + game/decorated_pot.rs`) instead of the sender: `crates/horizon-client/src/lan/hub.rs::Hub::broadcast_block_changes` sends every changed block entity of the tick's block updates, a decorated pot's tag coming from its chunk's saved data. - `ClientboundSetPlayerTeamPacket.createAddOrModifyPacket` and `createPlayerPacket` named `crates/horizon-client/src/lan/scoreboard.rs:124` and the bare file; both are built by `crates/horizon-client/src/lan/scoreboard.rs::View::changes`, which sends a team's method and parameters before its players and every leave before any join. **Proven:** `python3 tools/port_ledger.py map-check tools/port_map/rest-012.tsv` -> `149 rows, no problems.` (before this change the same command reported these four rows). **Not proven:** no fresh ledger rebuild, and no behaviour changed so nothing was run in the game. --- <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:52 +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#7335
No description provided.