This commit is contained in:
fullwall 2012-02-28 22:33:38 +08:00
parent 5e2ea74f1b
commit b57cd60285

View File

@ -100,7 +100,7 @@ public class EquipmentEditor extends Editor {
Messaging.send(player, "<e>" + npc.getName() + " <a>had all of its items removed."); Messaging.send(player, "<e>" + npc.getName() + " <a>had all of its items removed.");
} }
// Now edit the equipment based on the slot // 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)); player.getWorld().dropItemNaturally(npc.getBukkitEntity().getLocation(), trait.get(slot));
} }