[PR #7332] [MERGED] Port map: removeFramedMap is remove_framed_map, not a tick #7501

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

📋 Pull Request Information

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

Base: main ← Head: chore/vol-d-game2-002


📝 Commits (3)

  • 07d70e0 port map: removeFramedMap is remove_framed_map, not a tick
  • e9d4feb port map: when a broken frame's map forgets it
  • f620fed Merge main into #7332

📊 Changes

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

View changed files

📝 tools/port_map/game2-002.tsv (+1 -1)

📄 Description

Row 7 of tools/port_map/game2-002.tsv (139 rows, map-check clean against 26.3), the item frame, item entity, TNT and mob batches.

Rows

  • ItemFrame.removeFramedMap — inline crates/horizon-client/src/game/maps.rs::Game::lan_map_updates → port crates/horizon-client/src/game/maps.rs::Game::remove_framed_map. The row was wrong twice: the function it named is the LAN map-update path, and the note ("frame map markers come from item_frames each tick, so a removed frame needs no step") described a step the tree does have. maps.rs:1146 opens with /// `ItemFrame.removeFramedMap`: the map `frame` holds forgets the frame., reads the frame's held item, and calls removed_from_frame (maps.rs:424), which drops the decoration and the map's frames entry. The ledger already listed the method ported through that citation.
  • The row's note now states what the function does and when the game skips it: drop_frame_items (frames.rs:372) calls it when entity_drops is on or the break had no player behind it, and skips it only when the drops are off and a player caused the break — vanilla's null causedBy.

Rest of the batch, checked and left alone:

  • ItemFrame.getFrameItemStackWithData stays missing: drop_frame_items builds the dropped frame as ItemStack { item: f.kind(), count: 1, damage: 0, extra: None } (frames.rs:387), so no components — and no custom name — ride along.
  • PrimedTnt.restoreFrom/teleport and Shulker.startRiding/stopRiding/move/getRenderPosition stay missing with the reasons their notes give (no owner field, no used-portal flag, no attach-face reset, no box mover, no render slide); the riding behaviour they would share with mobs/riders.rs::start_riding/stop_riding is the generic Entity/LivingEntity path, not the shulker's override.

Map-check:

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

Proven: both commits; remove_framed_map and removed_from_frame are read in crates/horizon-client/src/game/maps.rs at this commit, and drop_frame_items with its comment about the null causedBy in crates/horizon-client/src/game/frames.rs. The dropped-frame stack's extra: None is read in the same function.

Not proven: nothing here changes behaviour — the row now names code that already exists, so the map's count of ported methods moves by one and the game does not. I did not run the client to watch a map frame break, and the missing rows listed above were judged from the tree and their existing notes, not from a play test.


🔄 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/7332 **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-d-game2-002` --- ### 📝 Commits (3) - [`07d70e0`](https://github.com/horizon-rust/horizon/commit/07d70e014e1e9cb0f5363c1a1d8e23145b7dcd71) port map: removeFramedMap is remove_framed_map, not a tick - [`e9d4feb`](https://github.com/horizon-rust/horizon/commit/e9d4febce2dc62944bd0660fae023de9e159add1) port map: when a broken frame's map forgets it - [`f620fed`](https://github.com/horizon-rust/horizon/commit/f620fed9a7af843857c6c84226adac86e925e367) Merge main into #7332 ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/game2-002.tsv` (+1 -1) </details> ### 📄 Description Row 7 of `tools/port_map/game2-002.tsv` (139 rows, map-check clean against 26.3), the item frame, item entity, TNT and mob batches. **Rows** - `ItemFrame.removeFramedMap` — `inline crates/horizon-client/src/game/maps.rs::Game::lan_map_updates` → `port crates/horizon-client/src/game/maps.rs::Game::remove_framed_map`. The row was wrong twice: the function it named is the LAN map-update path, and the note ("frame map markers come from item_frames each tick, so a removed frame needs no step") described a step the tree does have. `maps.rs:1146` opens with `` /// `ItemFrame.removeFramedMap`: the map `frame` holds forgets the frame. ``, reads the frame's held item, and calls `removed_from_frame` (`maps.rs:424`), which drops the decoration and the map's `frames` entry. The ledger already listed the method ported through that citation. - The row's note now states what the function does and when the game skips it: `drop_frame_items` (`frames.rs:372`) calls it when `entity_drops` is on or the break had no player behind it, and skips it only when the drops are off and a player caused the break — vanilla's null `causedBy`. Rest of the batch, checked and left alone: - `ItemFrame.getFrameItemStackWithData` stays `missing`: `drop_frame_items` builds the dropped frame as `ItemStack { item: f.kind(), count: 1, damage: 0, extra: None }` (`frames.rs:387`), so no components — and no custom name — ride along. - `PrimedTnt.restoreFrom`/`teleport` and `Shulker.startRiding`/`stopRiding`/`move`/`getRenderPosition` stay `missing` with the reasons their notes give (no owner field, no used-portal flag, no attach-face reset, no box mover, no render slide); the riding behaviour they would share with `mobs/riders.rs::start_riding`/`stop_riding` is the generic `Entity`/`LivingEntity` path, not the shulker's override. Map-check: ``` PORT_LEDGER_OUT=... python3 tools/port_ledger.py map-check tools/port_map/game2-002.tsv 139 rows, no problems. ``` **Proven:** both commits; `remove_framed_map` and `removed_from_frame` are read in `crates/horizon-client/src/game/maps.rs` at this commit, and `drop_frame_items` with its comment about the null `causedBy` in `crates/horizon-client/src/game/frames.rs`. The dropped-frame stack's `extra: None` is read in the same function. **Not proven:** nothing here changes behaviour — the row now names code that already exists, so the map's count of ported methods moves by one and the game does not. I did not run the client to watch a map frame break, and the `missing` rows listed above were judged from the tree and their existing notes, not from a play test. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:40:11 +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#7501
No description provided.