From e406137b19596224997397ebfbd033f21defefce Mon Sep 17 00:00:00 2001 From: Ben Staddon Date: Fri, 23 Nov 2018 23:24:18 +0000 Subject: [PATCH] Prevent RecipeBook from crashing on empty modded ingredients (#5234) --- .../client/gui/recipebook/GuiRecipeBook.java.patch | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/patches/minecraft/net/minecraft/client/gui/recipebook/GuiRecipeBook.java.patch b/patches/minecraft/net/minecraft/client/gui/recipebook/GuiRecipeBook.java.patch index 1954aadbe1..50f94b5bae 100644 --- a/patches/minecraft/net/minecraft/client/gui/recipebook/GuiRecipeBook.java.patch +++ b/patches/minecraft/net/minecraft/client/gui/recipebook/GuiRecipeBook.java.patch @@ -18,3 +18,12 @@ int l = 1; Iterator iterator = p_193951_1_.func_192400_c().iterator(); +@@ -500,7 +500,7 @@ + + Ingredient ingredient = iterator.next(); + +- if (ingredient != Ingredient.field_193370_a) ++ if (ingredient.func_193365_a().length > 0) + { + Slot slot = p_193951_2_.get(l); + this.field_191915_z.func_194187_a(ingredient, slot.field_75223_e, slot.field_75221_f);