mirror of
https://github.com/Michatec/wk_wars2x.git
synced 2026-04-01 08:26:27 +02:00
feat: only restore from backups if there are any
This commit is contained in:
@@ -92,8 +92,11 @@ function SYNC:SyncDataOnEnter()
|
|||||||
TriggerServerEvent( "wk_wars2x_sync:requestRadarData", driver )
|
TriggerServerEvent( "wk_wars2x_sync:requestRadarData", driver )
|
||||||
elseif ( PLY:IsDriver() ) then
|
elseif ( PLY:IsDriver() ) then
|
||||||
UTIL:Notify( "Restoring local radar data" )
|
UTIL:Notify( "Restoring local radar data" )
|
||||||
-- Restore the local data
|
|
||||||
RADAR:RestoreFromBackup()
|
if ( RADAR:IsThereBackupData() ) then
|
||||||
|
-- Restore the local data
|
||||||
|
RADAR:RestoreFromBackup()
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user