From fc83b1b8375fd769150fd48132fdcebae3deb231 Mon Sep 17 00:00:00 2001 From: Tonius Date: Sun, 5 Oct 2014 19:23:53 +0200 Subject: [PATCH] Added NEI usage handler for infusion objects --- .../client/nei/MetallurgicInfuserRecipeHandler.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/mekanism/client/nei/MetallurgicInfuserRecipeHandler.java b/src/main/java/mekanism/client/nei/MetallurgicInfuserRecipeHandler.java index 7474ae81b..df1f96405 100644 --- a/src/main/java/mekanism/client/nei/MetallurgicInfuserRecipeHandler.java +++ b/src/main/java/mekanism/client/nei/MetallurgicInfuserRecipeHandler.java @@ -194,6 +194,14 @@ public class MetallurgicInfuserRecipeHandler extends BaseRecipeHandler { arecipes.add(new CachedIORecipe(irecipe, getInfuseStacks(((InfusionInput)irecipe.getKey()).infusionType), ((InfusionInput)irecipe.getKey()).infusionType)); } + List infuses; + for(ItemStack stack : getInfuseStacks(((InfusionInput)irecipe.getKey()).infusionType)) { + if(NEIServerUtils.areStacksSameTypeCrafting(stack, ingredient)) { + infuses = new ArrayList(); + infuses.add(stack); + arecipes.add(new CachedIORecipe(irecipe, infuses, ((InfusionInput)irecipe.getKey()).infusionType)); + } + } } }