mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-18 19:39:14 +00:00
Merge pull request #2001 from greenchem4/master
Deep copy ore dictionary list
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user