From 64d1305c45c6ceef9001f662cf8ce8884581860a Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Wed, 10 Dec 2025 19:19:33 +0100 Subject: [PATCH] Fix for when foundry is disabled in settings --- bzgas2/prototypes/bakelite.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bzgas2/prototypes/bakelite.lua b/bzgas2/prototypes/bakelite.lua index e4815d1..c5c0a29 100644 --- a/bzgas2/prototypes/bakelite.lua +++ b/bzgas2/prototypes/bakelite.lua @@ -3,7 +3,7 @@ local util = require("data-util"); local prereq = {"basic-chemistry"} if mods["Krastorio2"] then table.insert(prereq, "steel-processing") -elseif mods["bzfoundry2"] then +elseif util.is_foundry() then table.insert(prereq, "foundry") elseif mods["aai-industry"] then table.insert(prereq, "automation")