summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-01-01 18:17:43 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-01-01 18:17:43 -0500
commitfadd91c7444661b297f2cd085d91b80ec7fdd650 (patch)
tree2f63ffbc1a22dadf081497e15808e26131c7524c
parentdc5617db896b0feef8b7a4935a693af7fb4a9d97 (diff)
downloadpipeworks-fadd91c7444661b297f2cd085d91b80ec7fdd650.tar
pipeworks-fadd91c7444661b297f2cd085d91b80ec7fdd650.tar.gz
pipeworks-fadd91c7444661b297f2cd085d91b80ec7fdd650.tar.bz2
pipeworks-fadd91c7444661b297f2cd085d91b80ec7fdd650.tar.xz
pipeworks-fadd91c7444661b297f2cd085d91b80ec7fdd650.zip
fixed facedir/rotation bug in placement of expansion tanks.
-rw-r--r--autoplace.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoplace.lua b/autoplace.lua
index 7e6a329..ef5bbda 100644
--- a/autoplace.lua
+++ b/autoplace.lua
@@ -181,11 +181,11 @@ function pipes_scansurroundings(pos)
end
function pipe_look_for_stackable_tanks(pos)
- tym = minetest.env:get_node({ x=pos.x , y=pos.y-1, z=pos.z })
+ local tym = minetest.env:get_node({ x=pos.x , y=pos.y-1, z=pos.z })
if string.find(tym.name, "pipeworks:storage_tank_") ~= nil or
string.find(tym.name, "pipeworks:expansion_tank_") ~= nil then
- minetest.env:add_node(pos, { name = "pipeworks:expansion_tank_0"})
+ minetest.env:add_node(pos, { name = "pipeworks:expansion_tank_0", param2 = tym.param2})
end
end