diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhat.java b/Essentials/src/com/earth2me/essentials/commands/Commandhat.java index cb1046685..0b28ef1e3 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandhat.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandhat.java @@ -39,12 +39,11 @@ public class Commandhat extends EssentialsCommand { if (user.getItemInHand().getType() != Material.AIR) { - final ItemStack hand = user.getItemInHand().clone(); + final ItemStack hand = user.getItemInHand(); if (hand.getType().getMaxDurability() == 0) { final PlayerInventory inv = user.getInventory(); final ItemStack head = inv.getHelmet(); - inv.removeItem(hand); inv.setHelmet(hand); inv.setItemInHand(head); user.sendMessage(_("hatPlaced"));