summaryrefslogtreecommitdiff
path: root/item_transport.lua
diff options
context:
space:
mode:
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)