1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-07-06 02:00:37 +02:00

update to use current mesecons API

requires mesecons commit 5be179bf110b44bdc06df6dbfde4e61487cf0635 or newer.
This commit is contained in:
Vanessa Ezekowitz
2014-11-22 13:55:54 -05:00
parent b49428721a
commit 28cef5e82f
5 changed files with 11 additions and 11 deletions

View File

@ -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},