From 5b695f3e69173eb4b3259683d9ef28e73599594c Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Wed, 1 Jul 2026 19:09:34 +0900 Subject: [PATCH] . --- PHI-CL/data/b/mbe.lua | 2 +- PHI-CL/data/b/mbm.lua | 2 +- PHI-CL/data/b/mbq.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PHI-CL/data/b/mbe.lua b/PHI-CL/data/b/mbe.lua index 1f9dedd..ca51331 100644 --- a/PHI-CL/data/b/mbe.lua +++ b/PHI-CL/data/b/mbe.lua @@ -245,7 +245,7 @@ function main_recipe(source, tier) recipe.name = source.name .. '-' .. tier recipe.icons = table.deepcopy(data.raw.item[source.ref_name].icons) recipe.energy_required = 2 - recipe.enabled = false + recipe.enabled = (data.raw.technology[source.tech] and false) or true recipe.categories = {'crafting'} recipe.ingredients = {{type = 'item', name = (tier > source.min and (source.name .. '-' .. (tier - 1))) or source.ref_name, amount = ((source.tech == 'compound-energy' and (source.type == 'solar-panel' or source.type == 'accumulator')) and tonumber(settings.startup['PHI-MB-ENERGY-SOLAR-RATIO'].value) or 4) or 2}} recipe.results = {{type = 'item', name = recipe.name, amount = 1}} diff --git a/PHI-CL/data/b/mbm.lua b/PHI-CL/data/b/mbm.lua index bccdb57..f723533 100644 --- a/PHI-CL/data/b/mbm.lua +++ b/PHI-CL/data/b/mbm.lua @@ -377,7 +377,7 @@ function main_recipe(source, tier) recipe.name = source.name .. '-' .. tier recipe.icons = table.deepcopy(data.raw.item[source.ref_name].icons) recipe.energy_required = 2 - recipe.enabled = false + recipe.enabled = (data.raw.technology[source.tech] and false) or true recipe.categories = {'crafting'} recipe.ingredients = {{type = 'item', name = (tier > source.min and (source.name .. '-' .. (tier - 1))) or source.ref_name, amount = 2}} recipe.results = {{type = 'item', name = recipe.name, amount = 1}} diff --git a/PHI-CL/data/b/mbq.lua b/PHI-CL/data/b/mbq.lua index 4df2f81..916d9e4 100644 --- a/PHI-CL/data/b/mbq.lua +++ b/PHI-CL/data/b/mbq.lua @@ -183,7 +183,7 @@ function main_recipe(source, tier) recipe.name = source.name .. '-mk' .. tier .. '-equipment' recipe.icons = table.deepcopy(data.raw.item[source.ref_name].icons) recipe.energy_required = 2 - recipe.enabled = false + recipe.enabled = (data.raw.technology[source.tech] and false) or true recipe.categories = {'crafting'} recipe.ingredients = {{type = 'item', name = (tier == source.min and source.ref_name) or (source.name .. '-mk' .. (tier - 1) .. '-equipment'), amount = 2}} recipe.results = {{type = 'item', name = recipe.name, amount = 1}}