From ef063c255ed2117e0dfee88c3af0e117a4c2f2f4 Mon Sep 17 00:00:00 2001 From: snowleo Date: Sun, 17 Feb 2013 15:07:32 +0100 Subject: [PATCH] Items can't be reused after the have been used in removeItem --- Essentials/src/com/earth2me/essentials/commands/Commandhat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandhat.java b/Essentials/src/com/earth2me/essentials/commands/Commandhat.java index 7ab9a446c..703d8e5f7 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandhat.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandhat.java @@ -44,7 +44,7 @@ public class Commandhat extends EssentialsCommand { final PlayerInventory inv = user.getInventory(); final ItemStack head = inv.getHelmet(); - inv.removeItem(hand); + inv.removeItem(hand.clone()); inv.setHelmet(hand); inv.setItemInHand(head); user.sendMessage(_("hatPlaced"));