mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
Add mod and command for exporting the Factorio locale including mods, and item icons assemled into a sprite sheet including mods.
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)
|