fix another bug

This commit is contained in:
aPunch 2012-02-28 06:09:40 -06:00
parent f6f655b15c
commit 1bb90ae533

View File

@ -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);
}
}