From d64036a13ad32291d28e318ff12812bf8090fe0c Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Fri, 14 Feb 2025 23:17:26 +0100 Subject: [PATCH] Improve progressive belt recipes --- lignumis/prototypes/integrations/vanilla.lua | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/lignumis/prototypes/integrations/vanilla.lua b/lignumis/prototypes/integrations/vanilla.lua index 68bc1b5..7ecd137 100644 --- a/lignumis/prototypes/integrations/vanilla.lua +++ b/lignumis/prototypes/integrations/vanilla.lua @@ -1,4 +1,5 @@ local Technology = require("__cf-lib__/data/Technology") +local Recipe = require("__cf-lib__/data/Recipe") -- Burner mining drill @@ -125,18 +126,9 @@ data.raw.recipe["transport-belt"].enabled = false -- Progressive recipes if settings.startup["lignumis-belt-progression"].value then - table.insert( - data.raw.recipe["transport-belt"].ingredients, - { type = "item", name = "wood-transport-belt", amount = 2 } - ) - table.insert( - data.raw.recipe["underground-belt"].ingredients, - { type = "item", name = "wood-underground-belt", amount = 2 } - ) - table.insert( - data.raw.recipe["splitter"].ingredients, - { type = "item", name = "wood-splitter", amount = 1 } - ) + Recipe:new("transport-belt"):replaceIngredient("iron-plate", "wood-transport-belt", 2) + Recipe:new("underground-belt"):replaceIngredient("transport-belt", "wood-underground-belt", 2) + Recipe:new("splitter"):replaceIngredient("transport-belt", "wood-splitter", 1) end if settings.startup["lignumis-inserter-progression"].value then