Skip to content

Commit

Permalink
Added empty/null string support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Talamar1 committed Jul 4, 2015
1 parent e0fb538 commit 58ccadb
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -95,6 +95,9 @@ public boolean tryItem(dItem item, String comparedto) {
}

public boolean tryMaterial(dMaterial mat, String comparedto) {
if (comparedto == null || comparedto.length() == 0) {
return false;
}
if (comparedto.equalsIgnoreCase("block") || comparedto.equalsIgnoreCase("material")) {
return true;
}
Expand Down

0 comments on commit 58ccadb

Please sign in to comment.