From 6d17e58053c0c794f6800050fb58895bc22d979e Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 4 Mar 2026 23:32:28 +0100 Subject: [PATCH] Add glass to the bio nursery if it exists --- Bio_Industries_2/data-updates.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Bio_Industries_2/data-updates.lua b/Bio_Industries_2/data-updates.lua index 6ae604f..0e0e1a5 100644 --- a/Bio_Industries_2/data-updates.lua +++ b/Bio_Industries_2/data-updates.lua @@ -643,7 +643,7 @@ if data.raw.item["bob-resin"] then end ---- Updaet seeds to work with Space Age if present. +--- Update seeds to work with Space Age if present. if data.raw.item["tree-seed"] then @@ -911,9 +911,13 @@ if set then end end --- Compatibility with Industrial Revolution ---require("prototypes.Industrial_Revolution") - +-- Add glass to the bio nursery +local glass = data.raw.item["glass"] and "glass" or data.raw.item["kr-glass"] and "kr-glass" or nil +if glass then + table.insert(data.raw.recipe["bi-bio-greenhouse"].ingredients, { + type = "item", name = glass, amount = 10 + }) +end ------------------------------------------------------------------------------------ -- Add icons to our prototypes