Migration for new helpers library

This commit is contained in:
Cooldude2606 committed 2024-11-19 22:34:39 +00:00
1 parent 67a169ce0a
commit 377fb69152
10 files changed
+51 -26

No files matched your search

+4 -2
View File
@@ -6,9 +6,11 @@ local Event = require("modules/exp_legacy/utils/event") --- @dep utils.event
local config = require("modules.exp_legacy.config.logging") --- @dep config.logging
local config_res = require("modules.exp_legacy.config.research") --- @dep config.research
local write_file = helpers.write_file
local function add_log(data)
game.write_file(config.file_name, data, true, 0)
game.write_file(config.file_name, "\n", true, 0)
write_file(config.file_name, data, true, 0)
write_file(config.file_name, "\n", true, 0)
end
Event.add(defines.events.on_rocket_launched, function(event)