Don't sync invisible vehicles

This commit is contained in:
Sardelka
2022-07-11 14:53:22 +08:00
parent 89410b8b46
commit edca1e2b98

View File

@ -518,6 +518,7 @@ namespace RageCoop.Client
// Outgoing sync // Outgoing sync
if (v.IsLocal) if (v.IsLocal)
{ {
if (!v.MainVehicle.IsVisible) { continue; }
SyncEvents.Check(v); SyncEvents.Check(v);
Networking.SendVehicle(v); Networking.SendVehicle(v);