add nil check for sprint
This commit is contained in:
parent
e82125db98
commit
f13a9456d9
4
init.lua
4
init.lua
@ -168,7 +168,9 @@ local function set_sprinting(name, sprinting)
|
|||||||
stamina.players[name].sprint = true
|
stamina.players[name].sprint = true
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif sprinting == false and stamina.players[name].sprint then
|
elseif sprinting == false
|
||||||
|
and stamina.players[name]
|
||||||
|
and stamina.players[name].sprint then
|
||||||
|
|
||||||
if monoids then
|
if monoids then
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user