isClient is already true, so make sure to initialize the objects

This commit is contained in:
Paul Pacheco 2019-11-29 18:23:46 -06:00
parent 4816f0ead1
commit 095b54752a

View File

@ -598,12 +598,9 @@ internal static void OnObjectSpawnFinished(ObjectSpawnFinishedMessage _)
// use data from scene objects
foreach (NetworkIdentity identity in NetworkIdentity.spawned.Values.OrderBy(uv => uv.netId))
{
if (!identity.isClient)
{
identity.NotifyAuthority();
identity.OnStartClient();
CheckForLocalPlayer(identity);
}
identity.NotifyAuthority();
identity.OnStartClient();
CheckForLocalPlayer(identity);
}
isSpawnFinished = true;
}