From 3589dfb3465d56978dad75515c0dbce246f0cf42 Mon Sep 17 00:00:00 2001 From: Brevven Date: Sat, 13 Aug 2022 00:42:20 -0700 Subject: [PATCH] up --- data-util.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/data-util.lua b/data-util.lua index 6a4bf8c..648d1a9 100644 --- a/data-util.lua +++ b/data-util.lua @@ -43,6 +43,10 @@ if get_setting("bz-recipe-bypass") then end end +function util.is_foundry() + return mods.bzfoundry and not me.get_setting("bzfoundry-minimal") +end + function bypass(recipe_name) if me.bypass[recipe_name] then return true end @@ -294,7 +298,10 @@ end -- Only works for recipes with multiple products function util.add_product(recipe_name, product) if bypass(recipe_name) then return end - if data.raw.recipe[recipe_name] and (data.raw.item[product[1]] or data.raw.item[product.name]) then + if data.raw.recipe[recipe_name] and + (data.raw.item[product[1]] or data.raw.item[product.name] or + data.raw.fluid[product[1]] or data.raw.fluid[product.name] + ) then add_product(data.raw.recipe[recipe_name], product) add_product(data.raw.recipe[recipe_name].normal, product) add_product(data.raw.recipe[recipe_name].expensive, product)