Skip to content

Commit

Permalink
fix: spawnwithauthority works again in host mode
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpach authored and miwarnec committed Nov 24, 2019
1 parent 92d0df7 commit 5b04836
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/Mirror/Runtime/ClientScene.cs
Original file line number Diff line number Diff line change
Expand Up @@ -674,6 +674,7 @@ internal static void OnHostClientSpawn(SpawnMessage msg)
if (NetworkIdentity.spawned.TryGetValue(msg.netId, out NetworkIdentity localObject) && localObject != null)
{
localObject.OnSetHostVisibility(true);
localObject.hasAuthority = msg.isOwner;
}
}

Expand Down

0 comments on commit 5b04836

Please sign in to comment.