mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
isClient is already true, so make sure to initialize the objects
This commit is contained in:
parent
4816f0ead1
commit
095b54752a
@ -597,14 +597,11 @@ internal static void OnObjectSpawnFinished(ObjectSpawnFinishedMessage _)
|
||||
// in the server. This is important if spawned objects
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
isSpawnFinished = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user