Fixed recipe value assignment when mods with custom IRecipe handler are added

This commit is contained in:
RedmenNL 2013-11-19 17:23:14 +01:00
parent 549f5031e8
commit cb88d29615

View file

@ -39,7 +39,11 @@ public class RecipesVanilla {
if (recipeOutput != null) {
ArrayList<CustomWrappedStack> recipeInputs = RecipeHelper.getRecipeInputs(recipe);
vanillaRecipes.put(new CustomWrappedStack(recipeOutput), recipeInputs);
if (!recipeInputs.isEmpty())
{
vanillaRecipes.put(new CustomWrappedStack(recipeOutput), recipeInputs);
}
}
}
}