[PR #7285] [MERGED] port map: game2-017's sign tick folds into the write; block entity gaps say where the tree stops #7463

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

📋 Pull Request Information

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

Base: main ← Head: chore/vol-b-game2-017


📝 Commits (2)

  • 207e153 port map: SignBlockEntity.tick folds into the sign write
  • f0bdb96 port map: the block entity gaps say where the tree stops

📊 Changes

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

View changed files

📝 tools/port_map/game2-017.tsv (+15 -15)

📄 Description

Rows of tools/port_map/game2-017.tsv (147 rows, map-check clean against 26.3), all block entities.

Verdict

row was now where
SignBlockEntity.tick missing inline crates/horizon-client/src/game/sign_edit.rs::Game::lan_sign_update

Vanilla clears a sign's edit permission on a tick once the player is out of range. Horizon never hands out a permission that outlives a write: lan_sign_update re-checks playerIsTooFarAwayToEdit on every SignUpdate and drops the guest's sign_editing when it is out of reach (sign_edit.rs:414-419), so the row folds into the write rather than needing a tick of its own.

Notes repaired — fourteen rows drop "unsure" for the code that decides the gap:

  • BlockEntity.getPosFromTag: save::decode_block_entity keeps the saved x/y/z and game.rs:1762 inserts the block entity at that key; a block entity saved in the wrong chunk keeps its saved x/z.
  • ChestBlockEntity.recheckOpen, EnderChestBlockEntity.recheckOpen: player openers are counted at open and close (container_openers_changed) and never recounted when the block beside the container changes; only the copper golems' openers get a recheck (recheck_golem_openers, every five ticks).
  • ChestBlockEntity.swapContents: its only vanilla caller is UpgradeData.BlockFixers, and the chunk upgrade does not swap chest halves.
  • ShulkerBoxBlockEntity.doNeighborUpdates: the lid tick counts the calls (ShulkerTick::neighbor_updates) and both paths that tick it — block_entity_ticks.rs::tick_shulkers and the client's Ticker::Shulker — take only push, so the open block state and the shape and neighbour updates around the box are never made.
  • SignBlockEntity.resolveLines, resolveLine, updateMessages, SignText.Mutable.modifyLine, modifyLines: a sign's text is kept as literal strings (block_entity_item.rs, sign_text_front/sign_text_back) and written straight through (lan_sign_update, close_sign_editor); nothing resolves selectors or scores.
  • LecternBlockEntity.resolveBook: books.rs::view_pages shows a written book's pages as they are.
  • LecternBlockEntity.createCommandSourceStack: only resolveBook builds it; a page's RunCommand goes through click_command, which has no lectern source.
  • CrafterBlockEntity.fillStackedContents: the recipe book fills a crafting grid, never a crafter's slots.
  • DecoratedPotBlockEntity.splitTheItem: decorated_pot.rs has no split-count step.

Map-check:

PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/game2-017.tsv
147 rows, no problems.

Proven: the verdict change and every rewritten note; each cited fn resolves under map-check, and the claims about tick_shulkers, decode_block_entity, lan_sign_update, recheck_golem_openers and the sign text fields are read from the tree at this commit.

Not proven: the gaps are still gaps. I did not establish that any of them cannot be ported, only that nothing in crates/ implements them 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/7285 **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/vol-b-game2-017` --- ### 📝 Commits (2) - [`207e153`](https://github.com/horizon-rust/horizon/commit/207e15329292e214d85c9e613df90e57ff59b7ce) port map: SignBlockEntity.tick folds into the sign write - [`f0bdb96`](https://github.com/horizon-rust/horizon/commit/f0bdb96bb176c7d076c492bccb1a29020bb113e8) port map: the block entity gaps say where the tree stops ### 📊 Changes **1 file changed** (+15 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game2-017.tsv` (+15 -15) </details> ### 📄 Description Rows of `tools/port_map/game2-017.tsv` (147 rows, map-check clean against 26.3), all block entities. **Verdict** | row | was | now | where | | --- | --- | --- | --- | | `SignBlockEntity.tick` | missing | inline | `crates/horizon-client/src/game/sign_edit.rs::Game::lan_sign_update` | Vanilla clears a sign's edit permission on a tick once the player is out of range. Horizon never hands out a permission that outlives a write: `lan_sign_update` re-checks `playerIsTooFarAwayToEdit` on every `SignUpdate` and drops the guest's `sign_editing` when it is out of reach (`sign_edit.rs:414-419`), so the row folds into the write rather than needing a tick of its own. **Notes repaired** — fourteen rows drop "unsure" for the code that decides the gap: - `BlockEntity.getPosFromTag`: `save::decode_block_entity` keeps the saved x/y/z and `game.rs:1762` inserts the block entity at that key; a block entity saved in the wrong chunk keeps its saved x/z. - `ChestBlockEntity.recheckOpen`, `EnderChestBlockEntity.recheckOpen`: player openers are counted at open and close (`container_openers_changed`) and never recounted when the block beside the container changes; only the copper golems' openers get a recheck (`recheck_golem_openers`, every five ticks). - `ChestBlockEntity.swapContents`: its only vanilla caller is `UpgradeData.BlockFixers`, and the chunk upgrade does not swap chest halves. - `ShulkerBoxBlockEntity.doNeighborUpdates`: the lid tick counts the calls (`ShulkerTick::neighbor_updates`) and both paths that tick it — `block_entity_ticks.rs::tick_shulkers` and the client's `Ticker::Shulker` — take only `push`, so the `open` block state and the shape and neighbour updates around the box are never made. - `SignBlockEntity.resolveLines`, `resolveLine`, `updateMessages`, `SignText.Mutable.modifyLine`, `modifyLines`: a sign's text is kept as literal strings (`block_entity_item.rs`, `sign_text_front`/`sign_text_back`) and written straight through (`lan_sign_update`, `close_sign_editor`); nothing resolves selectors or scores. - `LecternBlockEntity.resolveBook`: `books.rs::view_pages` shows a written book's pages as they are. - `LecternBlockEntity.createCommandSourceStack`: only `resolveBook` builds it; a page's `RunCommand` goes through `click_command`, which has no lectern source. - `CrafterBlockEntity.fillStackedContents`: the recipe book fills a crafting grid, never a crafter's slots. - `DecoratedPotBlockEntity.splitTheItem`: `decorated_pot.rs` has no split-count step. Map-check: ``` PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/game2-017.tsv 147 rows, no problems. ``` **Proven:** the verdict change and every rewritten note; each cited fn resolves under map-check, and the claims about `tick_shulkers`, `decode_block_entity`, `lan_sign_update`, `recheck_golem_openers` and the sign text fields are read from the tree at this commit. **Not proven:** the gaps are still gaps. I did not establish that any of them cannot be ported, only that nothing in `crates/` implements them 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:39:51 +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#7463
No description provided.