mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-21 22:06:22 +02:00
Items can't be reused after the have been used in removeItem
This commit is contained in:
@@ -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"));
|
||||
|
Reference in New Issue
Block a user