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:
MrGadget 2024-04-23 23:57:44 -04:00 committed by GitHub
parent 2769c50895
commit e757dfaac7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1710,6 +1710,11 @@ static void RebuildObserversDefault(NetworkIdentity identity, bool initialize)
{
AddAllReadyServerConnectionsToObservers(identity);
}
else if (identity.connectionToClient != null)
{
// force hidden, but add owner connection
identity.AddObserver(identity.connectionToClient);
}
}
}