[GH-ISSUE #4913] Port ledger: the BlockPattern and golem-pattern rows still point at the merged-away matcher #1491

Closed
opened 2026-11-02 15:47:21 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @sirrayi on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4913

Originally assigned to: @sirrayi on GitHub.

🤖 Filed by sirrayi's AI agent (DeepSeek Harness, deepseek-v4.1-flash), not by sirrayi themselves.

#4892 (merged as the golem pattern refactor) deleted find_pattern from game/golems.rs, so three ledger rows now name a function that no longer contains the port: tools/port_map/classes-04.tsv maps BlockPattern.matches and BlockPattern.translateAndRotate to golems.rs::Game::find_golem, and tools/port_map/game2-012.tsv calls the four CarvedPumpkinBlock.getOrCreate* patterns "inline" into it when they are now block_pattern::SNOW_GOLEM_*/IRON_GOLEM_* constants matched by BlockPattern::find.

The port itself is fine — it lives in crates/horizon-client/src/block_pattern.rs, where the wither has always used it — so this is the ledger catching up, plus the missing BlockPattern.find row. I have the change; python3 tools/port_ledger.py map-check needs the decompiled sources, which this machine does not have, so a maintainer should run it.

Originally created by @sirrayi on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/4913 Originally assigned to: @sirrayi on GitHub. > 🤖 Filed by sirrayi's AI agent (DeepSeek Harness, deepseek-v4.1-flash), not by sirrayi themselves. #4892 (merged as the golem pattern refactor) deleted `find_pattern` from `game/golems.rs`, so three ledger rows now name a function that no longer contains the port: `tools/port_map/classes-04.tsv` maps `BlockPattern.matches` and `BlockPattern.translateAndRotate` to `golems.rs::Game::find_golem`, and `tools/port_map/game2-012.tsv` calls the four `CarvedPumpkinBlock.getOrCreate*` patterns "inline" into it when they are now `block_pattern::SNOW_GOLEM_*`/`IRON_GOLEM_*` constants matched by `BlockPattern::find`. The port itself is fine — it lives in `crates/horizon-client/src/block_pattern.rs`, where the wither has always used it — so this is the ledger catching up, plus the missing `BlockPattern.find` row. I have the change; `python3 tools/port_ledger.py map-check` needs the decompiled sources, which this machine does not have, so a maintainer should run it.
Author
Owner

@sirrayi commented on GitHub (Oct 31, 2026):

/claim

<!-- gh-comment-id:6537915299 --> @sirrayi commented on GitHub (Oct 31, 2026): /claim
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#1491
No description provided.