Skip to content

Commit

Permalink
Fix logical error in Attribute. Whoops :)
Browse files Browse the repository at this point in the history
  • Loading branch information
aufdemrand committed Jul 6, 2013
1 parent 1f5b34f commit 3743799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/aufdemrand/denizen/tags/Attribute.java
Expand Up @@ -66,7 +66,7 @@ public boolean startsWith(String string, int attribute) {
string = string.toLowerCase();
if (attributes.isEmpty()) return false;
if (attributes.size() < attribute) return false;
if (raw_tag.split(".", attribute)[2].toLowerCase().startsWith(string)) return true;
if (raw_tag.split(".", attribute)[attribute - 1].toLowerCase().startsWith(string)) return true;
return false;
}

Expand Down

0 comments on commit 3743799

Please sign in to comment.