mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Move the export and clusterio mod code to the slave package and fix the path used for them. Refactor tests to use temp/tests/ as the cwd when running integration tests in order to ensure paths to lua code are correctly handled.
9 lines
204 B
Lua
9 lines
204 B
Lua
local function send_json(channel, data)
|
|
data = game.table_to_json(data)
|
|
print("\f$ipc:" .. channel .. "?j" .. data)
|
|
end
|
|
|
|
script.on_init(function()
|
|
send_json("mod_list", game.active_mods)
|
|
end)
|