mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-10 17:19:35 +01:00
Fix mcl_sprint globalstep taking long
This commit is contained in:
parent
306c0d99ef
commit
323a1f6e18
1 changed files with 1 additions and 0 deletions
|
@ -67,6 +67,7 @@ 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)
|
||||||
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 not sprinting and not mcl_sprint.is_sprinting(playerName) then return end
|
||||||
if players[playerName] then
|
if players[playerName] then
|
||||||
players[playerName].sprinting = sprinting
|
players[playerName].sprinting = sprinting
|
||||||
local fov_old = players[playerName].fov
|
local fov_old = players[playerName].fov
|
||||||
|
|
Loading…
Reference in a new issue