summaryrefslogtreecommitdiff
path: root/item_transport.lua
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2013-10-21 11:34:10 +0200
committerNovatux <nathanael.courant@laposte.net>2013-10-21 11:34:10 +0200
commit12eb772d18a4fef809e025751d813a6a514f8821 (patch)
treeaac39fcd5b32777c9ed55b6a4929bfad0339ba16 /item_transport.lua
parent6eaf8eac622276915160b1a0220086974d47bcc0 (diff)
downloadpipeworks-12eb772d18a4fef809e025751d813a6a514f8821.tar
pipeworks-12eb772d18a4fef809e025751d813a6a514f8821.tar.gz
pipeworks-12eb772d18a4fef809e025751d813a6a514f8821.tar.bz2
pipeworks-12eb772d18a4fef809e025751d813a6a514f8821.tar.xz
pipeworks-12eb772d18a4fef809e025751d813a6a514f8821.zip
Fix crossing tube and one way tube.
Diffstat (limited to 'item_transport.lua')
-rw-r--r--item_transport.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/item_transport.lua b/item_transport.lua
index 721aa19..3e7ff0a 100644
--- a/item_transport.lua
+++ b/item_transport.lua
@@ -394,7 +394,7 @@ minetest.register_entity("pipeworks:tubed_item", {
local moved=false
local speed=math.abs(velocity.x+velocity.y+velocity.z)
- local vel={x=velocity.x/speed,y=velocity.y/speed,z=velocity.z/speed}
+ local vel={x=velocity.x/speed,y=velocity.y/speed,z=velocity.z/speed, speed=speed}
if math.abs(vel.x)==1 then
local next_node=math.abs(pos.x-self.start_pos.x)