Skip to content

Commit

Permalink
Fix #895, re-add support for oredict strings for IStackHelper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Jun 17, 2017
1 parent 9530982 commit ee8a477
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/mezz/jei/startup/StackHelper.java
Expand Up @@ -337,6 +337,9 @@ private void toItemStackList(UniqueItemStackListBuilder itemStackListBuilder, @N
} else {
itemStackListBuilder.add(stack);
}
} else if (input instanceof String) {
List<ItemStack> stacks = OreDictionary.getOres((String) input);
toItemStackList(itemStackListBuilder, stacks, expandSubtypes);
} else if (input instanceof Ingredient) {
List<ItemStack> stacks = Arrays.asList(((Ingredient) input).func_193365_a());
toItemStackList(itemStackListBuilder, stacks, expandSubtypes);
Expand Down

0 comments on commit ee8a477

Please sign in to comment.