From d5a776604cfb4e1ed796c51a2de5f6c757ae1a14 Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Fri, 27 Dec 2024 17:42:18 +0100 Subject: [PATCH] allow digiline string commands closes #13 --- digiline.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/digiline.lua b/digiline.lua index adc1e08..75b2931 100644 --- a/digiline.lua +++ b/digiline.lua @@ -71,12 +71,14 @@ spacecannon.digiline_handler_fire = function(pos, node, channel, msg) end spacecannon.digiline_effector = function(pos, node, channel, msg) + if type(msg) == "string" then + msg = { command = msg:lower() } + end if type(msg) ~= "table" then return end local meta = minetest.get_meta(pos) - if channel ~= meta:get_string("channel") then return end