[PR #2332] [MERGED] Treat unbreakable items as undamageable in the anvil and grindstone #4213

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

📋 Pull Request Information

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

Base: main ← Head: fix/stations-unbreakable


📝 Commits (1)

  • 7569f96 Treat unbreakable items as undamageable in the anvil and grindstone

📊 Changes

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

View changed files

📝 crates/horizon-client/src/stations.rs (+4 -0)

📄 Description

What and why

An item with the unbreakable component was still treated as damageable by the anvil and the grindstone. For example, the anvil would try to repair it or combine its durability with another item, and the grindstone accepted it as a damageable input. The damageable check now also requires that the stack is not unbreakable, as in vanilla.

Vanilla reference

  • ItemStack.isDamageableItem: has(MAX_DAMAGE) && !has(UNBREAKABLE) && has(DAMAGE).

Self-check

cargo check -p horizon-client passes.


🔄 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/2332 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/stations-unbreakable` --- ### 📝 Commits (1) - [`7569f96`](https://github.com/horizon-rust/horizon/commit/7569f9615a193b50443eaff428e126651a647ce2) Treat unbreakable items as undamageable in the anvil and grindstone ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/stations.rs` (+4 -0) </details> ### 📄 Description ## What and why An item with the `unbreakable` component was still treated as damageable by the anvil and the grindstone. For example, the anvil would try to repair it or combine its durability with another item, and the grindstone accepted it as a damageable input. The damageable check now also requires that the stack is not unbreakable, as in vanilla. ## Vanilla reference - `ItemStack.isDamageableItem`: `has(MAX_DAMAGE) && !has(UNBREAKABLE) && has(DAMAGE)`. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:15: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#4213
No description provided.