From 701f4f41838a01d9268335d16380f871abaf8cf5 Mon Sep 17 00:00:00 2001 From: ZacNorthBigBox <55505849+ZacNorthBigBox@users.noreply.github.com> Date: Thu, 14 Nov 2019 11:32:51 -0800 Subject: [PATCH] fix: Pass the name of the invoking class and desired command when an object has no authority. (#1216) --- Assets/Mirror/Runtime/NetworkBehaviour.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Runtime/NetworkBehaviour.cs b/Assets/Mirror/Runtime/NetworkBehaviour.cs index 555e9c16b..28dc1a84f 100644 --- a/Assets/Mirror/Runtime/NetworkBehaviour.cs +++ b/Assets/Mirror/Runtime/NetworkBehaviour.cs @@ -194,7 +194,7 @@ protected void SendCommandInternal(Type invokeClass, string cmdName, NetworkWrit // local players can always send commands, regardless of authority, other objects must have authority. if (!(isLocalPlayer || hasAuthority)) { - Debug.LogWarning("Trying to send command for object without authority."); + Debug.LogWarning($"Trying to send command for object without authority. {invokeClass.ToString()}.{cmdName}"); return; }