Fix: some potential nil

This commit is contained in:
Linventif 2025-01-04 09:12:50 +00:00
parent c29a12dfd2
commit 5aee9272cd

View File

@ -76,7 +76,7 @@ end
gmInte.restoreFileCache = gmInte.restoreFileCache || {}
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 table.IsEmpty(gmInte.restoreFileCache) then
if file.Exists("gm_integration/player_before_map_change.json", "DATA") then