diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2014-11-22 13:55:54 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2014-11-22 13:55:54 -0500 |
commit | 28cef5e82f507377df9a29ff792e834a5b712c85 (patch) | |
tree | c776a196282b2497193aee7a6db9fab79cc081be /tubes.lua | |
parent | b49428721a7c0e8ce445be7465f0d219cf55a61c (diff) |
update to use current mesecons API
requires mesecons commit 5be179bf110b44bdc06df6dbfde4e61487cf0635 or newer.
Diffstat (limited to 'tubes.lua')
-rwxr-xr-x | tubes.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -373,7 +373,7 @@ if pipeworks.enable_detector_tube then local fdir = node.param2 if nitems == 0 then minetest.set_node(pos, {name = string.gsub(name, "on", "off"), param2 = fdir}) - mesecon:receptor_off(pos, pipeworks.mesecons_rules) + mesecon.receptor_off(pos, pipeworks.mesecons_rules) else meta:set_int("nitems", nitems) end @@ -394,7 +394,7 @@ if pipeworks.enable_detector_tube then local name = node.name local fdir = node.param2 minetest.set_node(pos,{name = string.gsub(name, "off", "on"), param2 = fdir}) - mesecon:receptor_on(pos, pipeworks.mesecons_rules) + mesecon.receptor_on(pos, pipeworks.mesecons_rules) return pipeworks.notvel(pipeworks.meseadjlist, velocity) end}, groups = {mesecon = 2}, |