mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-20 07:01:41 +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 PlayerInventory inv = user.getInventory();
|
||||||
final ItemStack head = inv.getHelmet();
|
final ItemStack head = inv.getHelmet();
|
||||||
inv.removeItem(hand);
|
inv.removeItem(hand.clone());
|
||||||
inv.setHelmet(hand);
|
inv.setHelmet(hand);
|
||||||
inv.setItemInHand(head);
|
inv.setItemInHand(head);
|
||||||
user.sendMessage(_("hatPlaced"));
|
user.sendMessage(_("hatPlaced"));
|
||||||
|
Loading…
Reference in New Issue
Block a user