summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnowleo <schneeleo@gmail.com>2013-02-17 15:34:49 +0100
committersnowleo <schneeleo@gmail.com>2013-02-17 15:34:49 +0100
commit69e941670f642d8624e5ca5973a87af53b65f722 (patch)
tree16a61cf003bab83d09d453db7c603f400e85055c
parentaf10a2050aa3a50d32008d8b7fb5f55401c2785e (diff)
downloadEssentials-69e941670f642d8624e5ca5973a87af53b65f722.tar
Essentials-69e941670f642d8624e5ca5973a87af53b65f722.tar.gz
Essentials-69e941670f642d8624e5ca5973a87af53b65f722.tar.lz
Essentials-69e941670f642d8624e5ca5973a87af53b65f722.tar.xz
Essentials-69e941670f642d8624e5ca5973a87af53b65f722.zip
why do we even remove the items?
derp
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandhat.java3
1 files changed, 1 insertions, 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"));