From 502395aa13e77afc5ae179b684121e65d3d3e71b Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 29 Jan 2015 04:18:00 +0100 Subject: use swap_node in autoplace_pipes for pipesegments so the source would be kept; fixes #78 --- autoplace_pipes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'autoplace_pipes.lua') diff --git a/autoplace_pipes.lua b/autoplace_pipes.lua index 69bd90e..4fc3665 100644 --- a/autoplace_pipes.lua +++ b/autoplace_pipes.lua @@ -9,7 +9,7 @@ local function autoroute_pipes(pos) local nsurround = pipeworks.scan_pipe_surroundings(pos) if nsurround == 0 then nsurround = 9 end - minetest.add_node(pos, {name = "pipeworks:pipe_"..tube_table[nsurround]..state, + minetest.swap_node(pos, {name = "pipeworks:pipe_"..tube_table[nsurround]..state, param2 = tube_table_facedirs[nsurround]}) end -- cgit v1.2.3