Prevent RecipeBook from crashing on empty modded ingredients (#5234)

This commit is contained in:
Ben Staddon authored and mezz committed 2018-11-23 15:24:18 -08:00
1 parent 16f4903285
commit e406137b19
1 file changed
+9
@@ -18,3 +18,12 @@
int l = 1;
Iterator<Ingredient> 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);