mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-09-30 22:04:21 +00:00
Items can't be reused after the have been used in removeItem
This commit is contained in:
parent
0e7d64f9e7
commit
ef063c255e
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue