Fixed the game crashing if one tries to look up uses for the Tainted Blood Pendant in NEI.

This commit is contained in:
Lizbeth Rika committed 2014-11-15 00:36:19 +00:00
1 parent fc207914d2
commit d23ed4386a
1 file changed
+6 -4
@@ -112,10 +112,12 @@ public class RecipeHandlerBrewery extends TemplateRecipeHandler {
@Override
public void loadUsageRecipes(ItemStack ingredient) {
if (ingredient.getItem() instanceof IBrewContainer)
for (RecipeBrew recipe : BotaniaAPI.brewRecipes)
this.arecipes.add(new CachedBreweryRecipe(recipe, ingredient));
else
if (ingredient.getItem() instanceof IBrewContainer) {
for(RecipeBrew recipe : BotaniaAPI.brewRecipes) {
if(recipe.getOutput(ingredient) != null)
this.arecipes.add(new CachedBreweryRecipe(recipe, ingredient));
}
} else
for (RecipeBrew recipe : BotaniaAPI.brewRecipes) {
CachedBreweryRecipe crecipe = new CachedBreweryRecipe(recipe);
if (crecipe.contains(crecipe.inputs, ingredient))