[PR #4346] [MERGED] Port map: four rows of #3515 already ported; item frames keep to the build height #5576

Closed
opened 2026-11-03 05:13:31 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4346
Author: @xFedeT
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/port-map-ominous-stew-crossbow-frames


📝 Commits (1)

  • 5f73381 Port map: four rows of #3515 that are already ported; an item frame keeps to the build height

📊 Changes

3 files changed (+13 additions, -5 deletions)

View changed files

📝 crates/horizon-client/src/game/frames.rs (+9 -1)
📝 tools/port_map/classes-02.tsv (+2 -2)
📝 tools/port_map/game2-008.tsv (+2 -2)

📄 Description

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

Refs #3515 (four rows). Part of #3601. No other open PR touches these rows.

What and why

Reading both sides before fixing (the ledger is wrong in about 1 row of 12), three rows of #3515 turn out to be already in the game, and a fourth was wrong about the frame:

row what the game has
OminousBottleAmplifier.addToTooltip item_tooltip.rs::ominous_bottle_line, listed by stack_tooltip_lines (and tested)
SuspiciousStewEffects.addToTooltip item_tooltip.rs::stew_lines, listed by stack_tooltip_lines
CrossbowItem.createProjectile an arrow keeps fired_from_weapon (crossbow.rs::shoot_crossbow) and arrows.rs::Ticker::hit_sound plays item.crossbow.hit for a crossbow's arrows (4ce1eb6b0)
HangingEntityItem.mayPlace paintings take no vertical face (place_painting); an item frame goes through ItemFrameItem.mayPlace instead, which allows a vertical face and only needs isInsideBuildHeight(blockPos)

Change

  • tools/port_map/classes-02.tsv, game2-008.tsv: the four rows from missing/gap to port, pointing at where they live.
  • game/frames.rs place_item_frame: the one thing the last row was missing, ItemFrameItem.mayPlace's build height check: a frame is not placed on the top face of the highest block or under the lowest one (it was placed one block outside the world).

Vanilla reference

OminousBottleAmplifier.addToTooltip, SuspiciousStewEffects.addToTooltip, CrossbowItem.createProjectile, HangingEntityItem.mayPlace, ItemFrameItem.mayPlace.

Testing

  • port_ledger check --base origin/main: no row lost.
  • pr_ready --quick (Python 3.12): Python tests (480), rustfmt, clippy and the Rust tests (976) pass.
  • No new test for the build height: it is a range check on the placement position (the existing frame tests are unchanged).

🤖 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/4346 **Author:** [@xFedeT](https://github.com/xFedeT) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/port-map-ominous-stew-crossbow-frames` --- ### 📝 Commits (1) - [`5f73381`](https://github.com/horizon-rust/horizon/commit/5f7338178c11a1688377f03e3852562d34b6284b) Port map: four rows of #3515 that are already ported; an item frame keeps to the build height ### 📊 Changes **3 files changed** (+13 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/frames.rs` (+9 -1) 📝 `tools/port_map/classes-02.tsv` (+2 -2) 📝 `tools/port_map/game2-008.tsv` (+2 -2) </details> ### 📄 Description > 🤖 Opened by xFedeT's AI agent (Claude Code, Claude Sonnet 5.5), not by xFedeT personally. Refs #3515 (four rows). Part of #3601. No other open PR touches these rows. ## What and why Reading both sides before fixing (the ledger is wrong in about 1 row of 12), three rows of #3515 turn out to be already in the game, and a fourth was wrong about the frame: | row | what the game has | |---|---| | `OminousBottleAmplifier.addToTooltip` | `item_tooltip.rs::ominous_bottle_line`, listed by `stack_tooltip_lines` (and tested) | | `SuspiciousStewEffects.addToTooltip` | `item_tooltip.rs::stew_lines`, listed by `stack_tooltip_lines` | | `CrossbowItem.createProjectile` | an arrow keeps `fired_from_weapon` (`crossbow.rs::shoot_crossbow`) and `arrows.rs::Ticker::hit_sound` plays `item.crossbow.hit` for a crossbow's arrows (4ce1eb6b0) | | `HangingEntityItem.mayPlace` | paintings take no vertical face (`place_painting`); an item frame goes through `ItemFrameItem.mayPlace` instead, which allows a vertical face and only needs `isInsideBuildHeight(blockPos)` | ## Change - `tools/port_map/classes-02.tsv`, `game2-008.tsv`: the four rows from `missing`/`gap` to `port`, pointing at where they live. - `game/frames.rs` `place_item_frame`: the one thing the last row was missing, `ItemFrameItem.mayPlace`'s build height check: a frame is not placed on the top face of the highest block or under the lowest one (it was placed one block outside the world). ## Vanilla reference `OminousBottleAmplifier.addToTooltip`, `SuspiciousStewEffects.addToTooltip`, `CrossbowItem.createProjectile`, `HangingEntityItem.mayPlace`, `ItemFrameItem.mayPlace`. ## Testing - `port_ledger check --base origin/main`: no row lost. - `pr_ready --quick` (Python 3.12): Python tests (480), rustfmt, clippy and the Rust tests (976) pass. - No new test for the build height: it is a range check on the placement position (the existing frame tests are unchanged). 🤖 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 05:13:31 +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#5576
No description provided.