Code: Select all
for i, machine in pairs(data.raw["assembling-machine"]) do
for j, category in pairs(machine.crafting_categories) do
if category == "crafting" then
table.insert(machine.crafting_categories,"crafting-machine")
end
end
end