fix: Pass the name of the invoking class and desired command when an object has no authority. (#1216)

This commit is contained in:
ZacNorthBigBox 2019-11-14 11:32:51 -08:00 committed by vis2k
parent 2c58902357
commit 701f4f4183

View File

@ -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;
}