only adds emc values for recipes with one output
This commit is contained in:
parent
9075692951
commit
90df1fe398
1 changed files with 2 additions and 4 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue