Fix a NPE crash in the lexicon search

(cherry picked from commit d7aa7e4241d3a694e56c6c55c0375305a9ee7ace)
This commit is contained in:
(Com)buster authored and Martin Robertz committed 2022-01-01 18:57:45 +01:00
1 parent bd2be73856
commit ba438bf6bd
1 file changed
+3 -1
@@ -99,7 +99,9 @@ public class PageBrew extends PageRecipe implements ITwoNamedPage {
@Override
public List<ItemStack> getDisplayedRecipes() {
ArrayList<ItemStack> list = new ArrayList();
list.add(recipe.getOutput(new ItemStack(ModItems.vial)));
if (recipe != null) {
list.add(recipe.getOutput(new ItemStack(ModItems.vial)));
}
return list;
}