mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-23 11:05:49 +01:00
fix another bug
This commit is contained in:
parent
f6f655b15c
commit
1bb90ae533
@ -103,12 +103,12 @@ public class EquipmentEditor extends Editor {
|
||||
if (trait.getEquipment(slot) != null && trait.getEquipment(slot).getType() != Material.AIR)
|
||||
player.getWorld().dropItemNaturally(npc.getBukkitEntity().getLocation(), trait.getEquipment(slot));
|
||||
ItemStack set = hand;
|
||||
set.setAmount(1);
|
||||
trait.setEquipment(slot, set);
|
||||
if (hand.getAmount() > 1)
|
||||
hand.setAmount(hand.getAmount() - 1);
|
||||
else
|
||||
hand = null;
|
||||
player.setItemInHand(hand);
|
||||
set.setAmount(1);
|
||||
trait.setEquipment(slot, set);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user