diff options
author | cheapie <no-email-for-you@example.com> | 2024-04-20 13:22:16 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2024-04-20 13:22:16 -0500 |
commit | 88a24a1fe8186fb81347ff2d61903ddfdb1752bc (patch) | |
tree | 20e55c604d53defb6e5db9c0b69bd53820924b5a /dispatcherfw.lua | |
parent | ed7e12a7bb03b2424a12d43857085cade10eae8b (diff) | |
download | celevator-88a24a1fe8186fb81347ff2d61903ddfdb1752bc.tar celevator-88a24a1fe8186fb81347ff2d61903ddfdb1752bc.tar.gz celevator-88a24a1fe8186fb81347ff2d61903ddfdb1752bc.tar.bz2 celevator-88a24a1fe8186fb81347ff2d61903ddfdb1752bc.tar.xz celevator-88a24a1fe8186fb81347ff2d61903ddfdb1752bc.zip |
Finish communication of other items with dispatcher
Diffstat (limited to 'dispatcherfw.lua')
-rw-r--r-- | dispatcherfw.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dispatcherfw.lua b/dispatcherfw.lua index 4e98d47..337c0b8 100644 --- a/dispatcherfw.lua +++ b/dispatcherfw.lua @@ -683,6 +683,12 @@ elseif event.type == "callbutton" then elseif event.dir == "down" and event.landing > 1 and event.landing <= #mem.params.floornames then mem.dncalls[event.landing] = true end +elseif event.type == "fs1switch" then + mem.fs1switch = event.state + mem.fs1led = event.state + for _,carid in ipairs(mem.params.carids) do + send(carid,"fs1switch",event.state) + end end fs("formspec_version[6]") |