From 69e941670f642d8624e5ca5973a87af53b65f722 Mon Sep 17 00:00:00 2001 From: snowleo Date: Sun, 17 Feb 2013 15:34:49 +0100 Subject: [PATCH] why do we even remove the items? derp --- .../src/com/earth2me/essentials/commands/Commandhat.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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"));