mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 17:47:34 +00:00
Fix: some potential nil
This commit is contained in:
parent
c29a12dfd2
commit
5aee9272cd
|
@ -76,7 +76,7 @@ end
|
||||||
|
|
||||||
gmInte.restoreFileCache = gmInte.restoreFileCache || {}
|
gmInte.restoreFileCache = gmInte.restoreFileCache || {}
|
||||||
function ply:getAdjustedTime()
|
function ply:getAdjustedTime()
|
||||||
if gmInte.restoreFileCache.sysTime == nil || gmInte.restoreFileCache.playersList == nil then return 0 end
|
if gmInte.restoreFileCache == nil || gmInte.restoreFileCache.sysTime == nil || gmInte.restoreFileCache.playersList == nil then return 0 end
|
||||||
if SERVER then
|
if SERVER then
|
||||||
if table.IsEmpty(gmInte.restoreFileCache) then
|
if table.IsEmpty(gmInte.restoreFileCache) then
|
||||||
if file.Exists("gm_integration/player_before_map_change.json", "DATA") then
|
if file.Exists("gm_integration/player_before_map_change.json", "DATA") then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user