mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix: Pass the name of the invoking class and desired command when an object has no authority. (#1216)
This commit is contained in:
parent
2c58902357
commit
701f4f4183
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user