Skip to content

Commit

Permalink
fix: bug with scene object spawning (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
uweeby committed Apr 12, 2021
1 parent 7f0ba3e commit b02c13d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirage/Runtime/ClientObjectManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ internal void RegisterMessageHandlers()
bool ConsiderForSpawning(NetworkIdentity identity)
{
// not spawned yet, not hidden, etc.?
return !identity.gameObject.activeSelf &&
return identity.NetId == 0 &&
identity.gameObject.hideFlags != HideFlags.NotEditable &&
identity.gameObject.hideFlags != HideFlags.HideAndDontSave &&
identity.sceneId != 0;
Expand Down

0 comments on commit b02c13d

Please sign in to comment.