Xander Mod version 1 is not compatible with bobs mods.
But if you want to solve this particular issue I'd sugest doing the following (in some data-final-fixes)(note that this depends on my math7-lib mod):
local function dedup_ingredients (ingr)
if ingr == nil then return end
local deduped_ingredients_map = {}
for k,v in pairs(ingredients) do
local ing_name = v.name or v[1]
local ing_amount = v.amount or v[2] or 1
local ing_type = v.type or "item"
local ingredient = {name = ing_name, amount = ing_amount, type = ing_type}
if deduped_ingredients_map[ing_name]
ingredient.amount = ingredient.amount + deduped_ingredients_map[ing_name].amount
end
deduped_ingredients_map[ing_name] = ingredient
end
deduped_ingredients = {}
for k,v in pairs(deduped_ingredients_map) do
deduped_ingredients[#deduped_ingredients + 1] = v
end
return deduped_ingredients
end
local function dedup_recipe_ingredients (recipe_name)
local e,ingr,ingr_exp = math7.lib.recipe.get_ingredients(recipe_name)
math7.lib.recipe.set_ingredients(recipe_name, dedup_ingredients(ingr), dedup_ingredients(ingr_exp))
end
dedup_recipe_ingredients("small-lamp")
(note that I havent tested this code)