fix: sync enchanted item to client (#2816)

This commit is contained in:
xRookieFight
2026-08-09 16:02:14 +03:00
committed by GitHub
parent bb9e71a951
commit 8f969c7681

View File

@@ -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(())
}