Advertisement
Guest User

Untitled

a guest
Apr 9th, 2017
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. -- Remove disabled recipes from technology unlock
  2. for k,v in pairs(data.raw.technology) do
  3. if v.effects then
  4. for i = #v.effects, 1, -1 do
  5. if v.effects[i] then
  6. if v.effects[i].type then
  7. local t = v.effects[i].type
  8. end
  9. if v.effects[i].recipe then
  10. local r = v.effects[i].recipe
  11. end
  12. end
  13. if t and t == "unlock-recipe" and r and removerecipes[r] then
  14. table.remove(v.effects, i)
  15. end
  16. end
  17. end
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement