mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
Keep care not to store ItemStacks of furnace recipes
* re #2828 (may be a fix, or may be an unrelated mistake)
This commit is contained in:
1 parent
47914c8820
commit
caa3d71d74
2 files changed
+2
-2
No files matched your search
@@ -176,7 +176,7 @@ public class VanillaSmeltingRecipe implements IMachineRecipe {
|
||||
Map<ItemStack, ItemStack> metaList = FurnaceRecipes.smelting().getSmeltingList();
|
||||
for (Entry<ItemStack, ItemStack> entry : metaList.entrySet()) {
|
||||
ItemStack output = entry.getValue();
|
||||
output = OreDictionaryPreferences.instance.getPreferred(output);
|
||||
output = OreDictionaryPreferences.instance.getPreferred(output).copy();
|
||||
result.add(new Recipe(new RecipeInput(entry.getKey()), RF_PER_ITEM, RecipeBonusType.NONE, new RecipeOutput(output)));
|
||||
}
|
||||
return result;
|
||||
|
||||
@@ -62,7 +62,7 @@ public final class OreDictionaryPreferences {
|
||||
}
|
||||
|
||||
if(result == null) {
|
||||
result = stack;
|
||||
result = stack.copy();
|
||||
}
|
||||
stackCache.put(key, result);
|
||||
return stack;
|
||||
|
||||
Reference in new issue
Block a user