mirror of
https://github.com/Xevion/project-cybersyn.git
synced 2025-12-06 05:16:06 -06:00
10 lines
493 B
Lua
10 lines
493 B
Lua
script.on_event(defines.events.on_gui_click, function(event)
|
|
if event.element.name ~= "allow_list_refresh" then return end
|
|
--game.print(serpent.block(event.element.tags))
|
|
|
|
-- < function interface.reset_stop_layout(stop_id, forbidden_entity, force_update)
|
|
local combId = event.element.tags.id
|
|
local stopId = storage.to_stop[combId].unit_number
|
|
remote.call("cybersyn", "reset_stop_layout", stopId, nil, true)
|
|
update_allow_list_section(event.player_index, combId)
|
|
end) |