forked from minetest-mods/hbsprint
Only drain stamina when moving.
This commit is contained in:
parent
b5867bdaa1
commit
7d08d859b1
2
init.lua
2
init.lua
@ -199,7 +199,7 @@ local function sprint_step(player, dtime)
|
|||||||
if dir then
|
if dir then
|
||||||
key_press = ctrl.aux1 and ctrl.up and not ctrl.left and not ctrl.right
|
key_press = ctrl.aux1 and ctrl.up and not ctrl.left and not ctrl.right
|
||||||
else
|
else
|
||||||
key_press = ctrl.aux1
|
key_press = ctrl.aux1 and (ctrl.up or ctrl.left or ctrl.right or crtl.down)
|
||||||
end
|
end
|
||||||
|
|
||||||
if not key_press then
|
if not key_press then
|
||||||
|
Loading…
Reference in New Issue
Block a user