While i've often be able to solve problems like that alone I'm blocking on this one...simply because I don't even see where my code can be wrong.attempt to index global 'script' (a nil value)
here's the code I'm doing my tests with
Code: Select all
if foo then
script.on_init(function()
game.player.disable_all_custom_prototypes()
local recipelist = game.player.force.recipes
recipelist["iron-plate"].enable()
recipelist["iron-stick"].enable()
recipelist["iron-axe"].enable()
end)
end
Any help would be welcomed, I'm just stuck there...the worst being that I'm sure the solution is simple but I just don't see it