Add glass to the bio nursery if it exists

This commit is contained in:
Simon Brodtmann 2026-03-04 23:32:28 +01:00
parent 8d34571767
commit 6d17e58053

View file

@ -643,7 +643,7 @@ if data.raw.item["bob-resin"] then
end 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 if data.raw.item["tree-seed"] then
@ -911,9 +911,13 @@ if set then
end end
end end
-- Compatibility with Industrial Revolution -- Add glass to the bio nursery
--require("prototypes.Industrial_Revolution") 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 -- Add icons to our prototypes