Fix for when foundry is disabled in settings

This commit is contained in:
Simon Brodtmann 2025-12-10 19:19:33 +01:00
parent afc504c789
commit 64d1305c45

View file

@ -3,7 +3,7 @@ local util = require("data-util");
local prereq = {"basic-chemistry"} local prereq = {"basic-chemistry"}
if mods["Krastorio2"] then if mods["Krastorio2"] then
table.insert(prereq, "steel-processing") table.insert(prereq, "steel-processing")
elseif mods["bzfoundry2"] then elseif util.is_foundry() then
table.insert(prereq, "foundry") table.insert(prereq, "foundry")
elseif mods["aai-industry"] then elseif mods["aai-industry"] then
table.insert(prereq, "automation") table.insert(prereq, "automation")