mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-20 03:59:37 +00:00
Added NEI usage handler for infusion objects
This commit is contained in:
1 parent
92a5929c28
commit
fc83b1b837
1 file changed
+8
@@ -194,6 +194,14 @@ public class MetallurgicInfuserRecipeHandler extends BaseRecipeHandler
|
||||
{
|
||||
arecipes.add(new CachedIORecipe(irecipe, getInfuseStacks(((InfusionInput)irecipe.getKey()).infusionType), ((InfusionInput)irecipe.getKey()).infusionType));
|
||||
}
|
||||
List<ItemStack> infuses;
|
||||
for(ItemStack stack : getInfuseStacks(((InfusionInput)irecipe.getKey()).infusionType)) {
|
||||
if(NEIServerUtils.areStacksSameTypeCrafting(stack, ingredient)) {
|
||||
infuses = new ArrayList<ItemStack>();
|
||||
infuses.add(stack);
|
||||
arecipes.add(new CachedIORecipe(irecipe, infuses, ((InfusionInput)irecipe.getKey()).infusionType));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user