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