diff options
-rw-r--r-- | autoplace_pipes.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |