mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Fix #176: ApplySpawnPayload only enables isClient if SpawnFinished. Forgot to do that when removing OnSetLocalObject in commit 58a70038a9
before.
This commit is contained in:
parent
4bd28e72c7
commit
d89ecf0ee0
@ -404,12 +404,12 @@ static void ApplySpawnPayload(NetworkIdentity identity, Vector3 position, byte[]
|
||||
}
|
||||
|
||||
identity.SetNetworkInstanceId(netId);
|
||||
identity.EnableIsClient();
|
||||
NetworkIdentity.spawned[netId] = identity;
|
||||
|
||||
// objects spawned as part of initial state are started on a second pass
|
||||
if (s_IsSpawnFinished)
|
||||
{
|
||||
identity.EnableIsClient();
|
||||
identity.OnStartClient();
|
||||
CheckForOwner(identity);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user