Fix oredict filter passing invalid stacks to oredict (#1481)
This commit is contained in:
parent
28b5caa5aa
commit
cb69f84ed6
|
@ -17,6 +17,9 @@ public class OreDictItemFilter extends TestItemFilter {
|
|||
|
||||
@Override
|
||||
public boolean doStacksMatch(ItemStack filterStack, ItemStack testStack) {
|
||||
if (filterStack.isEmpty() || testStack.isEmpty())
|
||||
return false;
|
||||
|
||||
int[] filterIds = OreDictionary.getOreIDs(filterStack);
|
||||
int[] testIds = OreDictionary.getOreIDs(testStack);
|
||||
|
||||
|
|
Loading…
Reference in a new issue