mirror of
https://github.com/joe7575/techpack.git
synced 2025-01-13 16:28:47 +01:00
bug fix
This commit is contained in:
parent
3a5d87ed5e
commit
3b815f8031
@ -90,13 +90,19 @@ minetest.register_node("tubelib_addons2:mesecons_converter", {
|
||||
effector = {
|
||||
rules = mesecon.rules.default,
|
||||
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,
|
||||
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,
|
||||
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,
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user