mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-29 00:57:29 +01:00
use swap_node in autoplace_pipes for pipesegments so the source would be kept; fixes #78
This commit is contained in:
parent
3bcf3b5f2f
commit
502395aa13
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user