From 346aaabc0226bd483d10f399b9d1b59a98794292 Mon Sep 17 00:00:00 2001 From: MrGadget1024 <9826063+MrGadget1024@users.noreply.github.com> Date: Sat, 18 Feb 2023 09:31:26 -0500 Subject: [PATCH] fixed /ninja switch --- Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs b/Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs index 60460c3d1..97dad5813 100644 --- a/Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs +++ b/Assets/Mirror/Examples/TestNT/Scripts/TestNTNetworkManager.cs @@ -103,7 +103,7 @@ void ProcessCmdLineArgs() ((SimpleWebTransport)Transport.active).sslEnabled = true; } - if (arg.Equals("/ninja:", StringComparison.InvariantCultureIgnoreCase)) + if (arg.StartsWith("/ninja:", StringComparison.InvariantCultureIgnoreCase)) if (uint.TryParse(arg.Remove(0, 7), out uint multiplier)) { ((TestNTNetworkAuthenticator)authenticator).SetNinja(true);