Files
MinecraftForge/patches/minecraft/net/minecraft/item/crafting/RecipeItemHelper.java.patch
T
LexManos bf9158172f Most client patches done except the render pipeline.
Someone who has more in depth knowledge of that rendering system will need to do it.
2018-11-28 22:15:05 -08:00

20 lines
642 B
Diff

--- a/net/minecraft/item/crafting/RecipeItemHelper.java
+++ b/net/minecraft/item/crafting/RecipeItemHelper.java
@@ -25,9 +25,13 @@
}
public void func_194112_a(ItemStack p_194112_1_) {
- if (!p_194112_1_.func_190926_b()) {
- int i = func_194113_b(p_194112_1_);
- int j = p_194112_1_.func_190916_E();
+ this.accountStack(p_194112_1_, -1);
+ }
+
+ public void accountStack(ItemStack stack, int forceCount) {
+ if (!stack.func_190926_b()) {
+ int i = func_194113_b(stack);
+ int j = forceCount == -1 ? stack.func_190916_E() : forceCount;
this.func_194117_b(i, j);
}