mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-29 14:15:50 +01:00
Remerge
This commit is contained in:
parent
bb93032410
commit
133bf796b5
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user