Files
CatServer/patches/net/minecraft/client/gui/recipebook/GuiRecipeBook.java.patch
2019-02-24 22:29:41 +08:00

12 lines
790 B
Diff

--- ../src-base/minecraft/net/minecraft/client/gui/recipebook/GuiRecipeBook.java
+++ ../src-work/minecraft/net/minecraft/client/gui/recipebook/GuiRecipeBook.java
@@ -485,7 +485,7 @@
this.ghostRecipe.addIngredient(Ingredient.fromStacks(itemstack), (p_193951_2_.get(0)).xPos, (p_193951_2_.get(0)).yPos);
int i = this.craftingSlots.getWidth();
int j = this.craftingSlots.getHeight();
- int k = p_193951_1_ instanceof ShapedRecipes ? ((ShapedRecipes)p_193951_1_).getWidth() : i;
+ int k = p_193951_1_ instanceof net.minecraftforge.common.crafting.IShapedRecipe ? ((net.minecraftforge.common.crafting.IShapedRecipe)p_193951_1_).getRecipeWidth() : i;
int l = 1;
Iterator<Ingredient> iterator = p_193951_1_.getIngredients().iterator();