This commit is contained in:
Joachim Stolberg 2018-03-25 15:44:37 +02:00
parent 3a5d87ed5e
commit 3b815f8031

@ -90,13 +90,19 @@ minetest.register_node("tubelib_addons2:mesecons_converter", {
effector = { effector = {
rules = mesecon.rules.default, rules = mesecon.rules.default,
action_on = function (pos, node) action_on = function (pos, node)
send_message(pos, "on", nil) local meta = minetest.get_meta(pos)
local own_number = meta:get_string("own_number")
send_message(pos, "on", own_number)
end, end,
action_off = function (pos, node) action_off = function (pos, node)
send_message(pos, "off", nil) local meta = minetest.get_meta(pos)
local own_number = meta:get_string("own_number")
send_message(pos, "off", own_number)
end, end,
action_change = function (pos, node) action_change = function (pos, node)
send_message(pos, "change", nil) local meta = minetest.get_meta(pos)
local own_number = meta:get_string("own_number")
send_message(pos, "change", own_number)
end, end,
} }
}, },