mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix(NetworkServer): Spawn for owner client even when Force Hidden (#3809)
Interest Management does this in Rebuild, but without IM involved, we need to handle this case in RebuildObserversDefault
This commit is contained in:
parent
2769c50895
commit
e757dfaac7
@ -1710,6 +1710,11 @@ static void RebuildObserversDefault(NetworkIdentity identity, bool initialize)
|
|||||||
{
|
{
|
||||||
AddAllReadyServerConnectionsToObservers(identity);
|
AddAllReadyServerConnectionsToObservers(identity);
|
||||||
}
|
}
|
||||||
|
else if (identity.connectionToClient != null)
|
||||||
|
{
|
||||||
|
// force hidden, but add owner connection
|
||||||
|
identity.AddObserver(identity.connectionToClient);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user