Merge pull request 'Fix mcl_sprint globalstep taking way too long' (#2487) from fix_sprinting_gs into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2487
Reviewed-by: MysticTempest <mystictempest@noreply.git.minetest.land>
This commit is contained in:
cora 2022-07-24 21:40:20 +00:00
commit fe4055c5cf

View File

@ -65,6 +65,7 @@ local function cancelClientSprinting(name)
end
local function setSprinting(playerName, sprinting) --Sets the state of a player (0=stopped/moving, 1=sprinting)
if not sprinting and not mcl_sprint.is_sprinting(playerName) then return end
local player = minetest.get_player_by_name(playerName)
local controls = player:get_player_control()
if players[playerName] then