Skip to content

Commit

Permalink
Added projectile detection to matchEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
Talamar1 committed Jul 8, 2015
1 parent fd7a46c commit ed32519
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/net/aufdemrand/denizen/objects/dEntity.java
Expand Up @@ -1241,6 +1241,9 @@ public boolean matchesEntity(String ent) {
if (ent.equalsIgnoreCase("vehicle")) {
return entity instanceof Vehicle;
}
if (ent.equalsIgnoreCase("projectile")) {
return entity instanceof Projectile;
}
if (ent.equalsIgnoreCase(getName())) {
return true;
}
Expand Down

0 comments on commit ed32519

Please sign in to comment.