Skip to content

Commit

Permalink
fix: Fixed ClienRpc typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Langsenkamp committed Mar 18, 2020
1 parent 5d5ee23 commit e946c79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static void ProcessMethods(TypeDefinition td)

if (ca.AttributeType.FullName == Weaver.ClientRpcType.FullName)
{
Weaver.Error($"[ClienRpc] {md} must be declared inside a NetworkBehaviour");
Weaver.Error($"[ClientRpc] {md} must be declared inside a NetworkBehaviour");
}

if (ca.AttributeType.FullName == Weaver.TargetRpcType.FullName)
Expand Down
2 changes: 1 addition & 1 deletion Assets/Mirror/Tests/Editor/WeaverTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ public void MonoBehaviourCommand()
public void MonoBehaviourClientRpc()
{
Assert.That(CompilationFinishedHook.WeaveFailed, Is.True);
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [ClienRpc] System.Void MirrorTest.MirrorTestPlayer::RpcThisCantBeOutsideNetworkBehaviour() must be declared inside a NetworkBehaviour"));
Assert.That(weaverErrors, Contains.Item("Mirror.Weaver error: [ClientRpc] System.Void MirrorTest.MirrorTestPlayer::RpcThisCantBeOutsideNetworkBehaviour() must be declared inside a NetworkBehaviour"));
}

[Test]
Expand Down

0 comments on commit e946c79

Please sign in to comment.