From 82f882d92039ec6d2f7e632b4a155c9924b2ee0e Mon Sep 17 00:00:00 2001 From: Simon Brodtmann Date: Mon, 7 Jul 2025 23:36:58 +0200 Subject: [PATCH] Fix bug with Astrponics 1.7.0 --- .../prototypes/integrations/astroponics-updates.lua | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lignumis/prototypes/integrations/astroponics-updates.lua b/lignumis/prototypes/integrations/astroponics-updates.lua index 72bc125..c0ef83f 100644 --- a/lignumis/prototypes/integrations/astroponics-updates.lua +++ b/lignumis/prototypes/integrations/astroponics-updates.lua @@ -1,2 +1,10 @@ -data.raw.technology["tree-seeding"].hidden = false -data.raw.technology["tree-seeding"].enabled = true +local Technology = require("__cf-lib__/data/Technology") + +-- This just undoes what astroponics changes to tree seeding +Technology:new("tree-seeding"):addRecipe("wood-processing") +Technology:new("astroponics"):removeRecipe("wood-processing") +for i, effect in pairs(data.raw.technology["tree-seeding"].effects) do + if effect.type == "change-recipe-productivity" and effect.recipe == "wood-processing" then + table.remove(data.raw.technology["tree-seeding"].effects, i) + end +end \ No newline at end of file