Skip to content

Commit

Permalink
Added a few checks when creating filters for the RangedCollector.
Browse files Browse the repository at this point in the history
  • Loading branch information
me4502 committed Dec 22, 2016
1 parent e75fd69 commit 77ebc7d
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -89,8 +89,12 @@ public void load() {
include = !getLine(3).startsWith("-");

for(String bit : getLine(3).replace("-","").split(",")) {

filters.add(ItemSyntax.getItem(bit));
if (bit.trim().length() > 0) {
ItemStack item = ItemSyntax.getItem(bit);
if (ItemUtil.isStackValid(item)) {
filters.add(ItemSyntax.getItem(bit));
}
}
}

chest = getBackBlock().getRelative(0, 1, 0);
Expand Down

0 comments on commit 77ebc7d

Please sign in to comment.