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
|
||||
phys.speed = (math.abs(vel_y/2) + 0.75)
|
||||
elseif vel_y <= -3 then --Cap our gliding movement speed.
|
||||
phys.speed = phys.speed*2.25
|
||||
phys.speed = 2.25
|
||||
end
|
||||
phys.jump = 0
|
||||
end,
|
||||
|
Loading…
x
Reference in New Issue
Block a user