mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-02 14:37:46 +01: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 New Issue
Block a user