Skip to content

Commit

Permalink
fix client connect
Browse files Browse the repository at this point in the history
  • Loading branch information
EmandM committed Dec 13, 2024
1 parent d2ab5db commit 3c3b354
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1738,11 +1738,6 @@ internal void GetObjectDistribution(ref Dictionary<uint, Dictionary<ulong, List<

foreach (var networkObject in NetworkManager.SpawnManager.SpawnedObjectsList)
{
if (networkObject.IsOwnershipSessionOwner)
{
continue;
}

if (networkObject.IsOwnershipDistributable && !networkObject.IsOwnershipLocked)
{
if (networkObject.transform.parent != null)
Expand All @@ -1754,6 +1749,11 @@ internal void GetObjectDistribution(ref Dictionary<uint, Dictionary<ulong, List<
}
}

if (networkObject.IsOwnershipSessionOwner)
{
continue;
}

if (!objectTypeCount.ContainsKey(networkObject.GlobalObjectIdHash))
{
objectTypeCount.Add(networkObject.GlobalObjectIdHash, 0);
Expand Down

0 comments on commit 3c3b354

Please sign in to comment.