Fix #3635 MC-103403 fix ingredient count for ingot block recipes (#3640)

This commit is contained in:
James Mitchell authored and LexManos committed 2017-01-17 15:40:09 -08:00
1 parent 7da6c2d0e1
commit 1e7eb6fb09
1 file changed
+13
@@ -0,0 +1,13 @@
--- ../src-base/minecraft/net/minecraft/item/crafting/RecipesIngots.java
+++ ../src-work/minecraft/net/minecraft/item/crafting/RecipesIngots.java
@@ -16,7 +16,9 @@
{
Block block = (Block)aobject[0];
ItemStack itemstack = (ItemStack)aobject[1];
- p_77590_1_.func_92103_a(new ItemStack(block), new Object[] {"###", "###", "###", '#', itemstack});
+ ItemStack itemstackIngredient = itemstack.func_77946_l(); // forge: MC-103403 ensure ingredient stack size is 1 and not 9.
+ itemstackIngredient.func_190920_e(1);
+ p_77590_1_.func_92103_a(new ItemStack(block), new Object[] {"###", "###", "###", '#', itemstackIngredient});
p_77590_1_.func_92103_a(itemstack, new Object[] {"#", '#', block});
}