Skip to content
Permalink
Browse files

Added a few checks when creating filters for the RangedCollector.

  • Loading branch information...
me4502 committed Dec 22, 2016
1 parent e75fd69 commit 77ebc7d82cf8f92564ae41956f932815edd21e45
@@ -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);

0 comments on commit 77ebc7d

Please sign in to comment.
You can’t perform that action at this time.