mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
NetworkServer.SetClientReady: use if+else instead of if + early return
This commit is contained in:
parent
0e8b442cad
commit
c176da7bc3
@ -789,9 +789,9 @@ public static void SetClientReady(NetworkConnection conn)
|
||||
}
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
// Spawn/update all current server objects
|
||||
if (LogFilter.Debug) Debug.Log("Spawning " + NetworkIdentity.spawned.Count + " objects for conn " + conn.connectionId);
|
||||
|
||||
@ -820,6 +820,7 @@ public static void SetClientReady(NetworkConnection conn)
|
||||
|
||||
conn.Send(new ObjectSpawnFinishedMessage());
|
||||
}
|
||||
}
|
||||
|
||||
internal static void ShowForConnection(NetworkIdentity identity, NetworkConnection conn)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user