mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
simplify NetworkIdentity.RebuildObservers
This commit is contained in:
parent
f0dd7549e6
commit
155764cea8
@ -810,9 +810,8 @@ public void RebuildObservers(bool initialize)
|
||||
// none of the behaviours rebuilt our observers, use built-in rebuild method
|
||||
if (initialize)
|
||||
{
|
||||
foreach (KeyValuePair<int, NetworkConnection> kvp in NetworkServer.connections)
|
||||
foreach (NetworkConnection conn in NetworkServer.connections.Values)
|
||||
{
|
||||
NetworkConnection conn = kvp.Value;
|
||||
if (conn.isReady)
|
||||
AddObserver(conn);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user