Fix crossing tube and one way tube.

This commit is contained in:
Novatux
2013-10-21 11:34:10 +02:00
parent 6eaf8eac62
commit 12eb772d18
2 changed files with 3 additions and 3 deletions

View File

@ -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)