Code: Select all
script.on_event(defines.events.on_tick, function() end);
game.print(tostring(game.get_event_handler(defines.events.on_tick)))
(as an aside, I think this method should be on the LuaBootstrap object instead for symmetry with where you register the event handler - it would be a breaking change but I'm not sure if anything is using it because of the above issue anyway)