forked from VoxeLibre/VoxeLibre
Merge pull request 'Fix mcl_sprint globalstep taking way too long' (#2487) from fix_sprinting_gs into master
Reviewed-on: MineClone2/MineClone2#2487 Reviewed-by: MysticTempest <mystictempest@noreply.git.minetest.land>
This commit is contained in:
commit
fe4055c5cf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue