From 328dfba605b4487bda4cba797c2ebafe2450ff25 Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Tue, 4 Feb 2025 14:49:46 +0100 Subject: [PATCH] Apply setting for progressive belt recipes to lab --- lignumis/prototypes/integrations/vanilla.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lignumis/prototypes/integrations/vanilla.lua b/lignumis/prototypes/integrations/vanilla.lua index 15ab920..e03115f 100644 --- a/lignumis/prototypes/integrations/vanilla.lua +++ b/lignumis/prototypes/integrations/vanilla.lua @@ -55,10 +55,12 @@ stone_furnace_remnants.animation[1].filename = "__lignumis__/graphics/entity/sto -- Lab -local lab_recipe = data.raw.recipe["lab"] -for _, ingredient in pairs(lab_recipe.ingredients) do - if ingredient.name == "transport-belt" then - ingredient.name = "wood-transport-belt" +if settings.startup["lignumis-belt-progression"].value then + local lab_recipe = data.raw.recipe["lab"] + for _, ingredient in pairs(lab_recipe.ingredients) do + if ingredient.name == "transport-belt" then + ingredient.name = "wood-transport-belt" + end end end