mirror of
https://github.com/minetest-mods/hbsprint.git
synced 2024-11-13 02:23:44 +01:00
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
|
||||
key_press = ctrl.aux1 and ctrl.up and not ctrl.left and not ctrl.right
|
||||
else
|
||||
key_press = ctrl.aux1
|
||||
key_press = ctrl.aux1 and (ctrl.up or ctrl.left or ctrl.right or crtl.down)
|
||||
end
|
||||
|
||||
if not key_press then
|
||||
|
Loading…
Reference in New Issue
Block a user