diff --git a/src/main/java/WayofTime/bloodmagic/routing/OreDictItemFilter.java b/src/main/java/WayofTime/bloodmagic/routing/OreDictItemFilter.java index 812c4cc3..aa209492 100644 --- a/src/main/java/WayofTime/bloodmagic/routing/OreDictItemFilter.java +++ b/src/main/java/WayofTime/bloodmagic/routing/OreDictItemFilter.java @@ -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);