This commit is contained in:
fullwall 2012-02-28 22:33:38 +08:00
parent bb93032410
commit 133bf796b5

View File

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