This commit is contained in:
mischa 2024-11-13 09:46:01 +01:00 committed by GitHub
commit 8ec06b90ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1266,6 +1266,11 @@ public static void SetClientReady(NetworkConnectionToClient conn)
{
// Debug.Log($"SetClientReadyInternal for conn:{conn}");
// only if not already ready yet.
// prevents clients spamming ReadyMessage to force observer rebuilds.
// fixes: https://github.com/MirrorNetworking/Mirror/issues/2623
if (conn.isReady) return;
// set ready
conn.isReady = true;