minetest-mods / hbsprint

A flexible sprint mod supporting stamina, hunger and monoids.
GNU Lesser General Public License v2.1
14 stars 11 forks source link

Only drain stamina when moving. #23

Closed orbea closed 4 years ago

orbea commented 4 years ago

I noticed that when sprint_forward_only is disabled and the player presses the use key to sprint while not moving it will still drain stamina.

I changed it so the player sprints only when pressing the use key and at least one directional key.

tacotexmex commented 4 years ago

Good catch, thanks.