summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2013-02-17 15:07:32 +0100
committersnowleo <schneeleo@gmail.com>2013-02-17 15:07:32 +0100
commiteecf32b32551f85cfeea71477b948030a9ad33e4 (patch)
tree0734c88b5ea7b44a0324b95a915c7ae671e01283
parentab49f826d6886313e352941e5b7337672d936e09 (diff)
downloadEssentials-eecf32b32551f85cfeea71477b948030a9ad33e4.tar
Essentials-eecf32b32551f85cfeea71477b948030a9ad33e4.tar.gz
Essentials-eecf32b32551f85cfeea71477b948030a9ad33e4.tar.lz
Essentials-eecf32b32551f85cfeea71477b948030a9ad33e4.tar.xz
Essentials-eecf32b32551f85cfeea71477b948030a9ad33e4.zip
Items can't be reused after the have been used in removeItem
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandhat.java2
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"));