From 133bf796b571d95d1a585370ccec93fb2d296674 Mon Sep 17 00:00:00 2001 From: fullwall Date: Tue, 28 Feb 2012 22:33:38 +0800 Subject: [PATCH] Remerge --- src/main/java/net/citizensnpcs/editor/EquipmentEditor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/citizensnpcs/editor/EquipmentEditor.java b/src/main/java/net/citizensnpcs/editor/EquipmentEditor.java index 39836868a..1255857a1 100644 --- a/src/main/java/net/citizensnpcs/editor/EquipmentEditor.java +++ b/src/main/java/net/citizensnpcs/editor/EquipmentEditor.java @@ -100,7 +100,7 @@ public class EquipmentEditor extends Editor { Messaging.send(player, "" + npc.getName() + " 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)); }