From 364633d884fa2420ab13f5444e06fb418e61d5c2 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 7 Feb 2015 02:45:17 -0500 Subject: make all tubes call the routing functions using their after_place/after_dig callbacks --- autoplace_tubes.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'autoplace_tubes.lua') diff --git a/autoplace_tubes.lua b/autoplace_tubes.lua index 1d4732a..280bd60 100644 --- a/autoplace_tubes.lua +++ b/autoplace_tubes.lua @@ -103,6 +103,14 @@ function pipeworks.scan_for_tube_objects(pos) end end +function pipeworks.after_place(pos) + pipeworks.scan_for_tube_objects(pos) +end + +function pipeworks.after_dig(pos) + pipeworks.scan_for_tube_objects(pos) +end + if minetest.get_modpath("mesecons_mvps") then mesecon.register_on_mvps_move(function(moved_nodes) for _, n in ipairs(moved_nodes) do -- cgit v1.2.3