summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim <t4im@users.noreply.github.com>2015-01-29 04:18:00 +0100
committerTim <t4im@users.noreply.github.com>2015-01-29 04:18:00 +0100
commit502395aa13e77afc5ae179b684121e65d3d3e71b (patch)
tree4a9c0e5c9dd57ab1c39397af6a65ec721dd12cc7
parent3bcf3b5f2f37a7b1268c6a072671934666852017 (diff)
downloadpipeworks-502395aa13e77afc5ae179b684121e65d3d3e71b.tar
pipeworks-502395aa13e77afc5ae179b684121e65d3d3e71b.tar.gz
pipeworks-502395aa13e77afc5ae179b684121e65d3d3e71b.tar.bz2
pipeworks-502395aa13e77afc5ae179b684121e65d3d3e71b.tar.xz
pipeworks-502395aa13e77afc5ae179b684121e65d3d3e71b.zip
use swap_node in autoplace_pipes for pipesegments so the source would be kept; fixes #78
-rw-r--r--autoplace_pipes.lua2
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