Skip to content

Commit d5a7766

Browse files
committed
allow digiline string commands
closes #13
1 parent 679057e commit d5a7766

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

digiline.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,14 @@ spacecannon.digiline_handler_fire = function(pos, node, channel, msg)
7171
end
7272

7373
spacecannon.digiline_effector = function(pos, node, channel, msg)
74+
if type(msg) == "string" then
75+
msg = { command = msg:lower() }
76+
end
7477
if type(msg) ~= "table" then
7578
return
7679
end
7780

7881
local meta = minetest.get_meta(pos)
79-
8082
if channel ~= meta:get_string("channel") then
8183
return
8284
end

0 commit comments

Comments
 (0)