use swap_node in autoplace_pipes for pipesegments so the source would be kept; fixes #78

This commit is contained in:
Tim 2015-01-29 04:18:00 +01:00
parent 3bcf3b5f2f
commit 502395aa13

View File

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