mirror of
https://github.com/CFC-Servers/cfc_time.git
synced 2025-03-04 03:03:20 -05:00
Add extra NW var for better backwards compat
This commit is contained in:
parent
70d8130b92
commit
947ebb7d1f
@ -71,6 +71,7 @@ if SERVER then
|
||||
|
||||
hook.Add( "CFC_Time_PlayerInitialTime", "CFC_Time_UtimeCompat", function( ply, isFirstVisit, timeStruct )
|
||||
ply:SetNWFloat( "CFC_UTime_Compat_SessionStart", CurTime() )
|
||||
ply:SetNWFloat( "UTimeStart", CurTime() )
|
||||
if not isFirstVisit then return end
|
||||
|
||||
logger:debug( "[UtimeCompat] Received PlayerInitialTime hook for first-time player - migrating time!" )
|
||||
|
Loading…
Reference in New Issue
Block a user