This commit is contained in:
mischa 2024-11-03 17:46:41 +08:00 committed by GitHub
commit 1afa0263f8
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}"); // 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 // set ready
conn.isReady = true; conn.isReady = true;