Merge pull request #2845 from HenryLoenwind/furnaceRecipes

Keep care not to store ItemStacks of furnace recipes
This commit is contained in:
tterrag1098 committed 2015-10-06 00:33:56 -04:00
commit 00da23e5fb
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;