Merge pull request #2001 from greenchem4/master

Deep copy ore dictionary list
This commit is contained in:
tterrag1098 committed 2015-02-24 01:43:49 -05:00
commit fa4e0c360c
1 file changed
+5 -3
@@ -54,10 +54,12 @@ public class OreDictionaryRecipeInput extends RecipeInput {
if(res == null || res.isEmpty()) {
return null;
}
for(ItemStack st : res) {
st.stackSize = getInput().stackSize;
ItemStack[] res2 = res.toArray(new ItemStack[res.size()]);
for(int i = 0; i < res.size(); ++i) {
res2[i] = res2[i].copy();
res2[i].stackSize = getInput().stackSize;
}
return res.toArray(new ItemStack[res.size()]);
return res2;
}
@Override