From 8f969c7681004acd8bbcb170885b6b9f65bcac1b Mon Sep 17 00:00:00 2001 From: xRookieFight Date: Sun, 9 Aug 2026 16:02:14 +0300 Subject: [PATCH] fix: sync enchanted item to client (#2816) --- crates/pumpkin/src/command/commands/enchant.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/pumpkin/src/command/commands/enchant.rs b/crates/pumpkin/src/command/commands/enchant.rs index b19b4af70..aea0d3531 100644 --- a/crates/pumpkin/src/command/commands/enchant.rs +++ b/crates/pumpkin/src/command/commands/enchant.rs @@ -167,7 +167,13 @@ async fn enchant_target( } item.enchant(enchantment, level); - player.inventory().set_held_item(item).await; + let inventory = player.inventory(); + inventory.set_held_item(item.clone()).await; + + player + .sync_hand_slot(inventory.get_selected_slot() as usize, item) + .await; + Ok(()) }