mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-25 01:19:33 +01:00
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:
commit
fe4055c5cf
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ local function cancelClientSprinting(name)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function setSprinting(playerName, sprinting) --Sets the state of a player (0=stopped/moving, 1=sprinting)
|
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 player = minetest.get_player_by_name(playerName)
|
||||||
local controls = player:get_player_control()
|
local controls = player:get_player_control()
|
||||||
if players[playerName] then
|
if players[playerName] then
|
||||||
|
|
Loading…
Reference in a new issue