end
minetest.register_abm({
- nodenames = empty_nodenames,
- interval = 15,
+ nodenames = pipes_empty_nodenames,
+ interval = 1,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider) check4inflows(pos,node) end
})
minetest.register_abm({
- nodenames = full_nodenames,
- interval = 10,
+ nodenames = pipes_full_nodenames,
+ interval = 1,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider) checksources(pos,node) end
})
minetest.register_abm({
nodenames = {'pipeworks:outlet','pipeworks:spigot'},
- interval = 10,
+ interval = 1,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
if node.name == 'pipeworks:outlet' then update_outlet(pos)
-- now define the nodes!
-local empty_nodenames = {}
-local full_nodenames = {}
+pipes_empty_nodenames = {}
+pipes_full_nodenames = {}
for xm = 0, 1 do
for xp = 0, 1 do
pipe_scanforobjects(pos)
end
})
- table.insert(empty_nodenames,"pipeworks:pipe_"..pname.."_empty") -- for the abms
- table.insert(full_nodenames,"pipeworks:pipe_"..pname.."_loaded") -- for bacon
+ table.insert(pipes_empty_nodenames,"pipeworks:pipe_"..pname.."_empty") -- for the abms
+ table.insert(pipes_full_nodenames,"pipeworks:pipe_"..pname.."_loaded") -- for bacon
end
end
end