From 9173e9a99e4e45413c036ee6fce2157d7248e55e Mon Sep 17 00:00:00 2001 From: sardelka9515 Date: Fri, 30 Sep 2022 23:27:37 +0800 Subject: [PATCH] Fix non-ambient peds get deleted --- RageCoop.Client/Sync/EntityPool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RageCoop.Client/Sync/EntityPool.cs b/RageCoop.Client/Sync/EntityPool.cs index 928b7f7..508acf4 100644 --- a/RageCoop.Client/Sync/EntityPool.cs +++ b/RageCoop.Client/Sync/EntityPool.cs @@ -365,7 +365,7 @@ namespace RageCoop.Client SyncedPed c = GetPedByHandle(p.Handle); if (c == null && (p != Game.Player.Character)) { - if (allPeds.Length > Main.Settings.WorldPedSoftLimit && p.PopulationType != EntityPopulationType.RandomAmbient) + if (allPeds.Length > Main.Settings.WorldPedSoftLimit && p.PopulationType == EntityPopulationType.RandomAmbient) { p.Delete(); continue;