forked from mtcontrib/hangglider
Fixed physicsctl allowing sprinting when gliding at full falling speed
This commit is contained in:
parent
4aa7f85fa0
commit
206704ffab
2
init.lua
2
init.lua
@ -136,7 +136,7 @@ minetestd.physicsctl.register_physics_effect("hangglider",
|
|||||||
if vel_y < 0 and vel_y > -3 then
|
if vel_y < 0 and vel_y > -3 then
|
||||||
phys.speed = (math.abs(vel_y/2) + 0.75)
|
phys.speed = (math.abs(vel_y/2) + 0.75)
|
||||||
elseif vel_y <= -3 then --Cap our gliding movement speed.
|
elseif vel_y <= -3 then --Cap our gliding movement speed.
|
||||||
phys.speed = phys.speed*2.25
|
phys.speed = 2.25
|
||||||
end
|
end
|
||||||
phys.jump = 0
|
phys.jump = 0
|
||||||
end,
|
end,
|
||||||
|
Loading…
Reference in New Issue
Block a user