cc deprecated


5 years ago
0.18
15

g Improve preformance

5 years ago

I noticed you were using
script.on_event(defines.events.on_tick, landfill_check)
with
if event.tick % (1000) == 0 then

this calculation is much more efficient if you use
script.on_nth_tick(1000, landfill_check)

New response