mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-13 16:54:06 +00:00
Fixed the game crashing if one tries to look up uses for the Tainted Blood Pendant in NEI.
This commit is contained in:
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))
|
||||
|
||||
Reference in new issue
Block a user