From edca1e2b98d7d95e4fd366114b7667519ba56d25 Mon Sep 17 00:00:00 2001 From: Sardelka Date: Mon, 11 Jul 2022 14:53:22 +0800 Subject: [PATCH] Don't sync invisible vehicles --- RageCoop.Client/Sync/EntityPool.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/RageCoop.Client/Sync/EntityPool.cs b/RageCoop.Client/Sync/EntityPool.cs index 80aa169..4a035b9 100644 --- a/RageCoop.Client/Sync/EntityPool.cs +++ b/RageCoop.Client/Sync/EntityPool.cs @@ -518,6 +518,7 @@ namespace RageCoop.Client // Outgoing sync if (v.IsLocal) { + if (!v.MainVehicle.IsVisible) { continue; } SyncEvents.Check(v); Networking.SendVehicle(v);