Fix oredict filter passing invalid stacks to oredict (#1481)

This commit is contained in:
Nicholas Ignoffo 2019-02-08 20:21:59 -08:00
parent 28b5caa5aa
commit cb69f84ed6

View file

@ -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);