From b254f30d720a010ca0a5475d698c93a2e426aaf4 Mon Sep 17 00:00:00 2001 From: cheapie Date: Tue, 14 May 2024 18:06:22 -0500 Subject: Allow car call security control from digilines too --- digilines.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) 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, -- cgit v1.2.3