Fix share item command

This commit is contained in:
zontreck 2025-03-30 16:16:31 -07:00
parent 90b90ea53c
commit 875e557fad

View file

@ -14,7 +14,7 @@ public class ShareItemCommand {
public static int execute(CommandSourceStack ctx) {
Player player = (Player) ctx.getSender();
ItemStack hand = player.getActiveItem();
ItemStack hand = player.getInventory().getItemInMainHand();
if (hand.isEmpty()) {
player.sendMessage(
Component.text("You cannot share air in chat.", NamedTextColor.DARK_RED));