From 296236ff0cbc6a85dae70ec1c58c07265e18f4b8 Mon Sep 17 00:00:00 2001 From: MrGadget1024 Date: Thu, 25 Nov 2021 11:50:49 -0500 Subject: [PATCH] syntax & formatting --- Assets/Mirror/Runtime/NetworkManager.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Assets/Mirror/Runtime/NetworkManager.cs b/Assets/Mirror/Runtime/NetworkManager.cs index 0a5ff1199..6fd92a136 100644 --- a/Assets/Mirror/Runtime/NetworkManager.cs +++ b/Assets/Mirror/Runtime/NetworkManager.cs @@ -1266,14 +1266,13 @@ public virtual void OnClientConnect(NetworkConnection conn) // clientLoadedScene flag to prevent it. if (!clientLoadedScene) { - // Ready/AddPlayer is usually triggered by a scene load - // completing. if no scene was loaded, then Ready/AddPlayer it - // here instead. - if (!NetworkClient.ready) NetworkClient.Ready(); + // Ready/AddPlayer is usually triggered by a scene load completing. + // if no scene was loaded, then Ready/AddPlayer it here instead. + if (!NetworkClient.ready) + NetworkClient.Ready(); + if (autoCreatePlayer) - { NetworkClient.AddPlayer(); - } } }