mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-04-01 09:50:23 +02:00
Double-check
This commit is contained in:
parent
4a55e3b056
commit
e719ed60b8
@ -550,7 +550,11 @@ local digiline = {
|
|||||||
receptor = {},
|
receptor = {},
|
||||||
effector = {
|
effector = {
|
||||||
action = function(pos, node, channel, msg)
|
action = function(pos, node, channel, msg)
|
||||||
run(pos, {type = "digiline", channel = channel, msg = msg})
|
if (type(channel) ~= "string" and type(channel) ~= "number" and type(channel) ~= "boolean") then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
local clean_msg = safe_deep_copy(msg, mesecon.setting("luacontroller_digiline_maxlen", 50000))
|
||||||
|
run(pos, {type = "digiline", channel = channel, msg = clean_msg})
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user