Skip to content

Commit

Permalink
Make Shoot command not get run if there are no valid projectiles.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidcernat committed Jun 30, 2013
1 parent ae4b010 commit 36e0a22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/net/aufdemrand/denizen/objects/dList.java
Expand Up @@ -164,7 +164,8 @@ public List<dObject> filter(Class<? extends dObject> dClass) {
}
}

return results;
if (results.size() > 0) return results;
else return null;
}

@Override
Expand Down

0 comments on commit 36e0a22

Please sign in to comment.