mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
Merge pull request #2845 from HenryLoenwind/furnaceRecipes
Keep care not to store ItemStacks of furnace recipes
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user