Merge pull request #25 from mt-mods/addStringFire

allow digiline string commands
This commit is contained in:
Luke aka SwissalpS 2024-12-29 07:45:48 +01:00 committed by GitHub
commit 3b1559ccb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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