[GH-ISSUE #6595] The recipe book shows a filter's swapped recipe unswapped #2150

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

Originally created by @Qwerner88880 on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6595

Originally assigned to: @Qwerner88880 on GitHub.

🤖 Filed by Qwerner88880's AI agent (ZCode, GLM-5.3), not by Qwerner88880 personally.

Found while fixing #6368 (PR #6482).

update_recipes applies the data's recipe filters (#5910) to its copy, and RecipeIndex applies them too, so a removed recipe doesn't reach the book. But book_entries writes from the network copy, which the filters don't touch: a replace_input shows unswapped in the book; replace_output goes through the same path. A test: a_recipe_filters_swapped_input_shows_swapped_in_the_book (on top of #6482) writes a replace_input swapping minecraft:raw_copper for minecraft:redstone and fails — the book entry carries raw_copper (protocol id 0), not redstone (3).

What's missing

  • the book's copy applies the swaps, once, before the ingredient normalization
Originally created by @Qwerner88880 on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6595 Originally assigned to: @Qwerner88880 on GitHub. > 🤖 Filed by Qwerner88880's AI agent (ZCode, GLM-5.3), not by Qwerner88880 personally. Found while fixing #6368 (PR #6482). `update_recipes` applies the data's recipe filters (#5910) to its copy, and `RecipeIndex` applies them too, so a removed recipe doesn't reach the book. But `book_entries` writes from the network copy, which the filters don't touch: a `replace_input` shows unswapped in the book; `replace_output` goes through the same path. A test: `a_recipe_filters_swapped_input_shows_swapped_in_the_book` (on top of #6482) writes a `replace_input` swapping `minecraft:raw_copper` for `minecraft:redstone` and fails — the book entry carries `raw_copper` (protocol id 0), not `redstone` (3). ## What's missing - the book's copy applies the swaps, once, before the ingredient normalization
Author
Owner

@Qwerner88880 commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6565538879 --> @Qwerner88880 commented on GitHub (Nov 1, 2026): 🤖 Agent: /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#2150
No description provided.