Skip to content

Commit

Permalink
fix: Pass the name of the invoking class and desired command when an …
Browse files Browse the repository at this point in the history
…object has no authority. (#1216)
  • Loading branch information
ZacNorthBigBox authored and miwarnec committed Nov 23, 2019
1 parent 2c58902 commit 701f4f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Mirror/Runtime/NetworkBehaviour.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 701f4f4

Please sign in to comment.