Allow car call security control from digilines too
This commit is contained in:
parent
dfcf5f322d
commit
b254f30d72
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user