Skip to content

Commit

Permalink
Don't require NPCs be spawned for cuboid.list_npcs
Browse files Browse the repository at this point in the history
Yay one-line commits
  • Loading branch information
mcmonkey4eva committed Oct 20, 2014
1 parent dcfbb5f commit db1b090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/aufdemrand/denizen/objects/dCuboid.java
Expand Up @@ -877,7 +877,7 @@ public String getAttribute(Attribute attribute) {
if (attribute.startsWith("list_npcs")) {
ArrayList<dNPC> npcs = new ArrayList<dNPC>();
for (NPC npc : CitizensAPI.getNPCRegistry()) {
if (npc.isSpawned() && isInsideCuboid(npc.getEntity().getLocation()))
if (isInsideCuboid(npc.getEntity().getLocation()))
npcs.add(dNPC.mirrorCitizensNPC(npc));
}
return new dList(npcs).getAttribute(attribute.fulfill(1));
Expand Down

0 comments on commit db1b090

Please sign in to comment.