ForgePatch/patches/minecraft/net/minecraft/item/crafting/IRecipePlacer.java.patch

18 lines
877 B
Diff

--- a/net/minecraft/item/crafting/IRecipePlacer.java
+++ b/net/minecraft/item/crafting/IRecipePlacer.java
@@ -7,10 +7,10 @@
default void func_201501_a(int p_201501_1_, int p_201501_2_, int p_201501_3_, IRecipe<?> p_201501_4_, Iterator<T> p_201501_5_, int p_201501_6_) {
int i = p_201501_1_;
int j = p_201501_2_;
- if (p_201501_4_ instanceof ShapedRecipe) {
- ShapedRecipe shapedrecipe = (ShapedRecipe)p_201501_4_;
- i = shapedrecipe.func_192403_f();
- j = shapedrecipe.func_192404_g();
+ if (p_201501_4_ instanceof net.minecraftforge.common.crafting.IShapedRecipe) {
+ net.minecraftforge.common.crafting.IShapedRecipe shapedrecipe = (net.minecraftforge.common.crafting.IShapedRecipe)p_201501_4_;
+ i = shapedrecipe.getRecipeWidth();
+ j = shapedrecipe.getRecipeHeight();
}
int k1 = 0;