mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
This commit is contained in:
parent
823ff7e22e
commit
faa944193a
1 changed files with 4 additions and 1 deletions
|
@ -276,8 +276,11 @@ end
|
|||
local get_velocity = function(self)
|
||||
|
||||
local v = self.object:get_velocity()
|
||||
if v then
|
||||
return (v.x * v.x + v.z * v.z) ^ 0.5
|
||||
end
|
||||
|
||||
return (v.x * v.x + v.z * v.z) ^ 0.5
|
||||
return 0
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue