Fix #359 JEI Alloy Smelter is not showing stack amount required

This commit is contained in:
mezz 2016-02-27 00:51:39 -08:00
parent 472c2f4d2e
commit 11a31e7bcd

View file

@ -42,7 +42,15 @@ public abstract class BaseRecipeWrapper<T extends BaseRecipe> extends BlankRecip
for (int oreId : oreIds) {
String oreName = OreDictionary.getOreName(oreId);
List<ItemStack> ores = OreDictionary.getOres(oreName);
itemStackSet.addAll(ores);
for (ItemStack ore : ores) {
if (ore.stackSize != itemStack.stackSize) {
ItemStack oreCopy = ore.copy();
oreCopy.stackSize = itemStack.stackSize;
itemStackSet.add(oreCopy);
} else {
itemStackSet.add(ore);
}
}
}
return new ArrayList<>(itemStackSet);
}