Items can't be reused after the have been used in removeItem

This commit is contained in:
snowleo 2013-02-17 15:07:32 +01:00
parent 0e7d64f9e7
commit ef063c255e

View file

@ -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"));