Space Exploration Nauvis Resource fixer


Fixes the resource limit on nauvis introduced in space exploration that many people dislike.

Tweaks
5 years ago
0.17
15

i unregister on-tick handler when done.

5 years ago

https://lua-api.factorio.com/latest/LuaBootstrap.html#LuaBootstrap.on_event

Passing nil as the handler function will remove the handler. You can use this to unregister once you have ticked once, and avoid needing to have the code run every tick, forever. Otherwise the code looks good, and by good I mean, like mine. :)

5 years ago

Thanks for the feedback! I didn't find the unregister method in the API docs, thats why I wasn't using it. I will definitely use your suggestion in the next release, when I have fixed multiplayer compatibility.

5 years ago

I'm glad I could help. It is rather hidden and implicit, so it took me quite some searching to figure that one out, back when.

New response