summaryrefslogtreecommitdiff
path: root/dispatcherfw.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-04-20 13:22:16 -0500
committercheapie <no-email-for-you@example.com>2024-04-20 13:22:16 -0500
commit88a24a1fe8186fb81347ff2d61903ddfdb1752bc (patch)
tree20e55c604d53defb6e5db9c0b69bd53820924b5a /dispatcherfw.lua
parented7e12a7bb03b2424a12d43857085cade10eae8b (diff)
downloadcelevator-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.lua6
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]")