Code: Select all
local myCar = util.table.deepcopy(data.raw["car"]["car"])
myCar.name = "my-car"
myCar.minable.result = "my-car"
data:extend({myCar})
If I take out the minable result then it works. If I try to create a recipe for it then I get the same error there.
I feel like I must be missing something simple. What am I doing wrong?