Optimize imports

This commit is contained in:
Sardelka9515
2023-02-13 17:51:18 +08:00
parent ac07edfe68
commit f555fef48d
22 changed files with 77 additions and 81 deletions

View File

@ -50,7 +50,7 @@ namespace RageCoop.Client
}
catch (Exception ex)
{
Main.Logger.Error(ex);
Log.Error(ex);
}
if (!Networking.IsOnServer) return;
@ -139,7 +139,7 @@ namespace RageCoop.Client
if (c == null || (c.IsLocal && ped.Handle != Game.Player.Character.Handle &&
ped.PopulationType != EntityPopulationType.Mission))
{
Main.Logger.Trace($"Removing ped {ped.Handle}. Reason:RemoveTraffic");
Log.Trace($"Removing ped {ped.Handle}. Reason:RemoveTraffic");
ped.CurrentVehicle?.Delete();
ped.Kill();
ped.Delete();
@ -154,7 +154,7 @@ namespace RageCoop.Client
// Don't delete player's vehicle
continue;
if (v == null || (v.IsLocal && veh.PopulationType != EntityPopulationType.Mission))
// Main.Logger.Debug($"Removing Vehicle {veh.Handle}. Reason:ClearTraffic");
// Log.Debug($"Removing Vehicle {veh.Handle}. Reason:ClearTraffic");
veh.Delete();
}
@ -181,7 +181,7 @@ namespace RageCoop.Client
}
catch (Exception ex)
{
Main.Logger.Error(ex);
Log.Error(ex);
QueuedActions.Remove(action);
}
}