diff --git a/Assets/Mirror/Components/NetworkTransform/HybridNetworkTransformV2.cs b/Assets/Mirror/Components/NetworkTransform/HybridNetworkTransformV2.cs index fd8c46aaa..30006658a 100644 --- a/Assets/Mirror/Components/NetworkTransform/HybridNetworkTransformV2.cs +++ b/Assets/Mirror/Components/NetworkTransform/HybridNetworkTransformV2.cs @@ -115,7 +115,7 @@ public override void OnStartClient() base.OnStopClient(); if (!registeredHandlers) RegisterClientHandlers(); - if (isOwned) CmdRegisteredHandler(); + CmdRegisteredHandler(); } protected virtual void RegisterServerHandlers() @@ -133,13 +133,11 @@ protected virtual void RegisterClientHandlers() registeredHandlers = true; } - [Command] + [Command(requiresAuthority = false)] private void CmdRegisteredHandler() { if (!registeredConnections.Contains(connectionToClient)) registeredConnections.Add(connectionToClient); - - Debug.Log($"Hashset cound {registeredConnections.Count}"); } #endregion