Skip to content

Commit

Permalink
Fix #988 Stop showing oredict recipes when an ingredient isn't available
Browse files Browse the repository at this point in the history
  • Loading branch information
mezz committed Sep 7, 2017
1 parent cbb2ee5 commit 91dcb11
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -15,6 +15,7 @@
import net.minecraft.item.crafting.Ingredient;
import net.minecraft.item.crafting.ShapedRecipes;
import net.minecraft.item.crafting.ShapelessRecipes;
import net.minecraftforge.oredict.OreIngredient;
import net.minecraftforge.oredict.ShapedOreRecipe;
import net.minecraftforge.oredict.ShapelessOreRecipe;

Expand Down Expand Up @@ -105,6 +106,8 @@ protected static int getInputCount(List<Ingredient> ingredientList) {
//noinspection ConstantConditions
if (input == null) {
return INVALID_COUNT;
} else if (ingredient instanceof OreIngredient && input.length == 0) {
return INVALID_COUNT;
} else {
inputCount++;
}
Expand Down

0 comments on commit 91dcb11

Please sign in to comment.