mirror of
https://github.com/pandorabox-io/spacecannon.git
synced 2025-01-04 11:57:30 +01:00
Merge pull request #25 from mt-mods/addStringFire
allow digiline string commands
This commit is contained in:
commit
3b1559ccb1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user