Skip to content

Commit

Permalink
Exclude broken brewing recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Jul 6, 2016
1 parent f4bdaff commit 4358d33
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -38,10 +38,12 @@ public boolean isRecipeValid(@Nonnull BrewingRecipeWrapper recipe) {
if (recipe.getInputs().size() != 4) {
String recipeInfo = ErrorUtil.getInfoFromBrokenRecipe(recipe, this);
Log.error("Recipe has the wrong number of inputs (needs 4). {}", recipeInfo);
return false;
}
if (recipe.getOutputs().size() != 1) {
String recipeInfo = ErrorUtil.getInfoFromBrokenRecipe(recipe, this);
Log.error("Recipe has the wrong number of outputs (needs 1). {}", recipeInfo);
return false;
}
return true;
}
Expand Down

0 comments on commit 4358d33

Please sign in to comment.