only adds emc values for recipes with one output

This commit is contained in:
modmuss50 2015-05-30 13:49:48 +01:00
parent 9075692951
commit 90df1fe398

View file

@ -1,7 +1,6 @@
package techreborn.compat.ee3;
import com.pahimar.ee3.api.exchange.RecipeRegistryProxy;
import net.minecraft.item.ItemStack;
import techreborn.api.recipe.IBaseRecipeType;
import techreborn.api.recipe.RecipeHanderer;
@ -10,9 +9,8 @@ public class EmcValues {
public static void init()
{
for(IBaseRecipeType recipeType : RecipeHanderer.recipeList){
for(ItemStack output : recipeType.getOutputs()){
//TODO this does not handle multi outputs
RecipeRegistryProxy.addRecipe(output, recipeType.getInputs());
if(recipeType.getOutputs().size() == 1){
RecipeRegistryProxy.addRecipe(recipeType.getOutputs().get(0), recipeType.getInputs());
}
}
}