mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 07:04:52 +09:00
The role of a slave as a host for Factorio servers is not well reflected in its name and has caused confusion among users. Rename slave to host to better reflect its role as a host of Factorio servers.
12 lines
335 B
Lua
12 lines
335 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)
|
|
for name, mod_setting in pairs(game.mod_setting_prototypes) do
|
|
send_json("mod_setting_mod", { name = name, mod = mod_setting.mod })
|
|
end
|
|
end)
|