diff options
author | snowleo <schneeleo@gmail.com> | 2013-02-17 15:07:32 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2013-02-17 15:07:32 +0100 |
commit | ef063c255ed2117e0dfee88c3af0e117a4c2f2f4 (patch) | |
tree | 158b82f77f9b7ca0096699037458f8467869bb87 | |
parent | 0e7d64f9e72472d23f6bb1bb7a6b6bb6958bd516 (diff) | |
download | Essentials-ef063c255ed2117e0dfee88c3af0e117a4c2f2f4.tar Essentials-ef063c255ed2117e0dfee88c3af0e117a4c2f2f4.tar.gz Essentials-ef063c255ed2117e0dfee88c3af0e117a4c2f2f4.tar.lz Essentials-ef063c255ed2117e0dfee88c3af0e117a4c2f2f4.tar.xz Essentials-ef063c255ed2117e0dfee88c3af0e117a4c2f2f4.zip |
Items can't be reused after the have been used in removeItem
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandhat.java | 2 |
1 files changed, 1 insertions, 1 deletions
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")); |