Fix playing self-hosted game to properly receive RPCs

This commit is contained in:
Wojtek Figat
2023-02-10 15:06:37 +01:00
parent 57178b8a5b
commit 9b6ba67186

View File

@@ -1023,15 +1023,6 @@ void NetworkInternal::NetworkReplicatorUpdate()
NewClients.Clear();
}
// Collect clients for replication (from server)
BuildCachedTargets(NetworkManager::Clients);
if (!isClient && CachedTargets.Count() == 0)
{
// Early exit if server has nobody to send data to
Scripting::ObjectsLookupIdMapping.Set(nullptr);
return;
}
// Despawn
if (DespawnQueue.Count() != 0)
{