I am trying to move smart inserters to a higher tech that unlocks the the recipe. Well I did that but now I need to remove it from the lower tech. This is what I have, but the removing part is throwing out errors. I'm not sure how this is incorrect though.
Code: Select all
--Moving Smart inserter to higher Technology
table.remove(data.raw.technology["electronics"].effects,{type = "unlock-recipe", recipe = "smart-inserter"})
table.insert(data.raw.technology["advanced-electronics"].effects,{type = "unlock-recipe", recipe = "smart-inserter"})