Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Remove disabled recipes from technology unlock
- for k,v in pairs(data.raw.technology) do
- if v.effects then
- for i = #v.effects, 1, -1 do
- if v.effects[i] then
- if v.effects[i].type then
- local t = v.effects[i].type
- end
- if v.effects[i].recipe then
- local r = v.effects[i].recipe
- end
- end
- if t and t == "unlock-recipe" and r and removerecipes[r] then
- table.remove(v.effects, i)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement