diff options
author | cheapie <no-email-for-you@example.com> | 2024-05-14 18:06:22 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2024-05-14 18:06:22 -0500 |
commit | b254f30d720a010ca0a5475d698c93a2e426aaf4 (patch) | |
tree | 3a1e2c72deba944a4cbfd124b755ad8e58492132 | |
parent | dfcf5f322d05c8ca5e3336209c17516a1d5deba8 (diff) | |
download | celevator-b254f30d720a010ca0a5475d698c93a2e426aaf4.tar celevator-b254f30d720a010ca0a5475d698c93a2e426aaf4.tar.gz celevator-b254f30d720a010ca0a5475d698c93a2e426aaf4.tar.bz2 celevator-b254f30d720a010ca0a5475d698c93a2e426aaf4.tar.xz celevator-b254f30d720a010ca0a5475d698c93a2e426aaf4.zip |
Allow car call security control from digilines too
-rw-r--r-- | digilines.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/digilines.lua b/digilines.lua index 413a0bc..1cdfd3f 100644 --- a/digilines.lua +++ b/digilines.lua @@ -143,6 +143,17 @@ minetest.register_node("celevator:digilines_io",{ channel = "swingdncall", msg = msg.floor, }) + elseif msg.command == "security" and type(msg.floor) == "number" then + if msg.mode == "deny" or msg.mode == "auth" or not msg.mode then + celevator.controller.run(carinfo.controllerpos,{ + type = "remotemsg", + channel = "security", + msg = { + floor = msg.floor, + mode = msg.mode, + }, + }) + end end end end, |