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:
Henry Loenwind committed 2015-09-23 14:04:24 +02:00
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;