From 95969446d10d84efef6c05378f4627c00b847dba Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 24 Feb 2026 22:15:13 +0100 Subject: [PATCH 1/2] Fix missing module slots for various entities --- Bio_Industries_2/prototypes/Bio_Farm/entities.lua | 2 +- Bio_Industries_2/prototypes/Bio_Fuel/entities.lua | 4 +--- Bio_Industries_2/prototypes/Bio_Garden/entities.lua | 12 +++--------- 3 files changed, 5 insertions(+), 13 deletions(-) diff --git a/Bio_Industries_2/prototypes/Bio_Farm/entities.lua b/Bio_Industries_2/prototypes/Bio_Farm/entities.lua index 8ff75d9..c3c2189 100644 --- a/Bio_Industries_2/prototypes/Bio_Farm/entities.lua +++ b/Bio_Industries_2/prototypes/Bio_Farm/entities.lua @@ -506,7 +506,7 @@ data:extend({ resistances = { { type = "fire", percent = 95 } }, collision_box = { { -1.2, -1.2 }, { 1.2, 1.2 } }, selection_box = { { -1.5, -1.5 }, { 1.5, 1.5 } }, - module_specification = { module_slots = 2 }, + module_slots = 2, allowed_effects = { "consumption", "speed", "pollution" }, graphics_set = { -- Working animation (16 frames) diff --git a/Bio_Industries_2/prototypes/Bio_Fuel/entities.lua b/Bio_Industries_2/prototypes/Bio_Fuel/entities.lua index b35cb7b..7e87ac2 100644 --- a/Bio_Industries_2/prototypes/Bio_Fuel/entities.lua +++ b/Bio_Industries_2/prototypes/Bio_Fuel/entities.lua @@ -195,9 +195,7 @@ data:extend({ ingredient_count = 3, crafting_speed = 1, energy_usage = "10kW", - module_specification = { - module_slots = 3 - }, + module_slots = 3, allowed_effects = { "consumption", "speed", "productivity", "pollution" }, }, diff --git a/Bio_Industries_2/prototypes/Bio_Garden/entities.lua b/Bio_Industries_2/prototypes/Bio_Garden/entities.lua index 5356625..d0dfd0b 100644 --- a/Bio_Industries_2/prototypes/Bio_Garden/entities.lua +++ b/Bio_Industries_2/prototypes/Bio_Garden/entities.lua @@ -84,9 +84,7 @@ data:extend({ -- Changed for 0.18.34/1.1.4 -- Modules don't make sense for the gardens! -- (Efficiency modules are also meant to reduce pollution, but as the base value -- is negative, the resulting value is greater than the base value! ) - module_specification = { - module_slots = 1 - }, + module_slots = 1, -- Changed for 0.18.34/1.1.4 -- We need to use an empty table here, so the gardens -- won't be affected by beacons! allowed_effects = { "consumption", "speed" }, @@ -224,9 +222,7 @@ data:extend({ -- Changed for 0.18.34/1.1.4 -- Modules don't make sense for the gardens! -- (Efficiency modules are also meant to reduce pollution, but as the base value -- is negative, the resulting value is greater than the base value! ) - module_specification = { - module_slots = 2 - }, + module_slots = 2, -- Changed for 0.18.34/1.1.4 -- We need to use an empty table here, so the gardens -- won't be affected by beacons! allowed_effects = { "consumption", "speed" }, @@ -406,9 +402,7 @@ data:extend({ -- Changed for 0.18.34/1.1.4 -- Modules don't make sense for the gardens! -- (Efficiency modules are also meant to reduce pollution, but as the base value -- is negative, the resulting value is greater than the base value! ) - module_specification = { - module_slots = 4 - }, + module_slots = 4, -- Changed for 0.18.34/1.1.4 -- We need to use an empty table here, so the gardens -- won't be affected by beacons! allowed_effects = { "consumption", "speed" }, From 1eba1804d73ee3315dbd62a23a8222c165ed4b82 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 24 Feb 2026 22:17:57 +0100 Subject: [PATCH 2/2] Allow productivity modules for Bio fuel conversion 1 --- Bio_Industries_2/prototypes/Bio_Fuel/recipe.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Bio_Industries_2/prototypes/Bio_Fuel/recipe.lua b/Bio_Industries_2/prototypes/Bio_Fuel/recipe.lua index 13f368a..5a0ca89 100644 --- a/Bio_Industries_2/prototypes/Bio_Fuel/recipe.lua +++ b/Bio_Industries_2/prototypes/Bio_Fuel/recipe.lua @@ -278,11 +278,12 @@ if BI.Settings.BI_Bio_Fuel then name = "bi-biomass-conversion-1", localised_name = {"recipe-name.bi-biomass-conversion-1"}, localised_description = {"recipe-description.bi-biomass-conversion-1"}, - icons = { {icon = ICONPATH .. "bio_conversion_1.png", icon_size = 64, } }, + icons = { {icon = ICONPATH .. "bio_conversion_1.png", icon_size = 64, } }, category = "oil-processing", enabled = false, always_show_made_in = true, allow_decomposition = false, + allow_productivity = true, energy_required = 5, ingredients = { {type = "fluid", name = "bi-biomass", amount = 100}, @@ -294,7 +295,7 @@ if BI.Settings.BI_Bio_Fuel then }, main_product = "", subgroup = "bio-bio-fuel-other", - order = "a[oil-processing]-b[advanced-oil-processing]-y[bi-Fuel_Conversion-1]", + order = "a[oil-processing]-b[advanced-oil-processing]-y[bi-Fuel_Conversion-1]" }, ---- Biomass to PG @@ -308,7 +309,7 @@ if BI.Settings.BI_Bio_Fuel then enabled = false, always_show_made_in = true, allow_decomposition = false, - allow_productivity = true, + allow_productivity = true, energy_required = 5, ingredients = { {type = "fluid", name = "bi-biomass", amount = 10}, @@ -333,7 +334,7 @@ if BI.Settings.BI_Bio_Fuel then enabled = false, always_show_made_in = true, allow_decomposition = false, - allow_productivity = true, + allow_productivity = true, energy_required = 2.5, ingredients = { {type = "fluid", name = "bi-biomass", amount = 10},