This commit is contained in:
aPunch 2012-02-28 07:27:33 -06:00
parent cf5017644b
commit f10944db9c
2 changed files with 3 additions and 5 deletions

Binary file not shown.

View File

@ -100,17 +100,15 @@ public class EquipmentEditor extends Editor {
Messaging.send(player, "<e>" + npc.getName() + " <a>had all of its items removed.");
}
// Now edit the equipment based on the slot
if (trait.get(slot) != null) {
if (trait.get(slot) != null && trait.get(slot).getType() != Material.AIR)
player.getWorld().dropItemNaturally(npc.getBukkitEntity().getLocation(), trait.get(slot));
}
ItemStack set = hand;
if (set != null && set.getType() != Material.AIR) {
if (hand.getAmount() > 1) {
if (hand.getAmount() > 1)
hand.setAmount(hand.getAmount() - 1);
} else {
else
hand = null;
}
player.setItemInHand(hand);
set.setAmount(1);
}