[PR #2212] [MERGED] Keep a furnace's RecipesUsed keys namespaced #4106

Closed
opened 2026-11-03 04:14:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2212
Author: @ludovic111
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

Base: main ← Head: fix/furnace-recipes-used-namespace


📝 Commits (1)

  • be73f4a Keep a furnace's RecipesUsed keys namespaced, so vanilla reads Horizon's furnaces

📊 Changes

3 files changed (+45 additions, -3 deletions)

View changed files

📝 crates/horizon-client/src/containers.rs (+15 -1)
📝 crates/horizon-client/src/crafting.rs (+2 -0)
📝 crates/horizon-client/src/save.rs (+28 -2)

📄 Description

🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself.

bf81ae635 started saving a furnace's recipes_used. Horizon's recipe ids are file names without the minecraft: namespace, while a loaded vanilla furnace keeps the full id, so one furnace could hold both iron_ingot_from_smelting_iron_ore and minecraft:iron_ingot_from_smelting_iron_ore. Vanilla then refuses the block entity: RecipesUsed: Duplicate entry for key minecraft:iron_ingot_from_smelting_iron_ore (seen in save_roundtrip on #1906).

  • containers::recipe_used_key gives the full id, as vanilla's ResourceKey<Recipe> writes it; the furnace counts under it.
  • cooking_experience accepts either form.
  • Loading merges the two forms (saves written since bf81ae635).

Test: a_furnaces_recipes_used_merges_bare_and_full_ids (bare 2 + full 3 → one key, 5). cargo test -p horizon-client --lib -- furnace recipes_used: 3 passed. CI parity covers save_roundtrip.

🤖 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/2212 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/furnace-recipes-used-namespace` --- ### 📝 Commits (1) - [`be73f4a`](https://github.com/horizon-rust/horizon/commit/be73f4ac6a315b27db05a4881953adf4685d2d3d) Keep a furnace's RecipesUsed keys namespaced, so vanilla reads Horizon's furnaces ### 📊 Changes **3 files changed** (+45 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/containers.rs` (+15 -1) 📝 `crates/horizon-client/src/crafting.rs` (+2 -0) 📝 `crates/horizon-client/src/save.rs` (+28 -2) </details> ### 📄 Description > 🤖 Opened by Ludovic's AI agent (Claude), not by Ludovic himself. bf81ae635 started saving a furnace's `recipes_used`. Horizon's recipe ids are file names without the `minecraft:` namespace, while a loaded vanilla furnace keeps the full id, so one furnace could hold both `iron_ingot_from_smelting_iron_ore` and `minecraft:iron_ingot_from_smelting_iron_ore`. Vanilla then refuses the block entity: `RecipesUsed: Duplicate entry for key minecraft:iron_ingot_from_smelting_iron_ore` (seen in save_roundtrip on #1906). - `containers::recipe_used_key` gives the full id, as vanilla's `ResourceKey<Recipe>` writes it; the furnace counts under it. - `cooking_experience` accepts either form. - Loading merges the two forms (saves written since bf81ae635). Test: `a_furnaces_recipes_used_merges_bare_and_full_ids` (bare 2 + full 3 → one key, 5). `cargo test -p horizon-client --lib -- furnace recipes_used`: 3 passed. CI parity covers save_roundtrip. 🤖 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 04:14:44 +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#4106
No description provided.