From a07c6d57dc5aac19f65730aa5b01579cf54f4e62 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Mon, 26 Oct 2026 19:04:00 +0100 Subject: [PATCH] horizon-items: item_name reads name_text from horizon-client-core Main's item_name (d983ef89b) called crate::entity_nbt::name_text, which the client re-exports from horizon_client_core::component. Co-Authored-By: Claude Opus 5.5 --- crates/horizon-items/src/item_data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/horizon-items/src/item_data.rs b/crates/horizon-items/src/item_data.rs index 344dab6b7..52c0ccf9b 100644 --- a/crates/horizon-items/src/item_data.rs +++ b/crates/horizon-items/src/item_data.rs @@ -210,7 +210,7 @@ impl ItemStack { /// by `ominous_banner` instead. pub fn item_name(&self) -> Option { let name = self.data()?.other("minecraft:item_name")?; - Some(crate::entity_nbt::name_text(name).plain()) + Some(horizon_client_core::component::name_text(name).plain()) } pub fn potion(&self) -> Option<&str> { self.data().and_then(|d| d.potion.as_deref())