diff options
author | Novatux <nathanael.courant@laposte.net> | 2013-10-21 11:34:10 +0200 |
---|---|---|
committer | Novatux <nathanael.courant@laposte.net> | 2013-10-21 11:34:10 +0200 |
commit | 12eb772d18a4fef809e025751d813a6a514f8821 (patch) | |
tree | aac39fcd5b32777c9ed55b6a4929bfad0339ba16 /item_transport.lua | |
parent | 6eaf8eac622276915160b1a0220086974d47bcc0 (diff) |
Fix crossing tube and one way tube.
Diffstat (limited to 'item_transport.lua')
-rw-r--r-- | item_transport.lua | 2 |
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) |