From 95969446d10d84efef6c05378f4627c00b847dba Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 24 Feb 2026 22:15:13 +0100 Subject: [PATCH] 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" },