mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Trim before parse
This commit is contained in:
parent
0eb8d9998c
commit
e5c3b914dd
2 changed files with 2 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ namespace MinecraftClient
|
|||
/// <returns>Argument array or empty array if no arguments</returns>
|
||||
public static string[] getArgs(string command)
|
||||
{
|
||||
string[] args = getArg(command).Split(' ');
|
||||
string[] args = getArg(command).Split(' ', StringSplitOptions.RemoveEmptyEntries);
|
||||
if (args.Length == 1 && args[0] == "")
|
||||
{
|
||||
return new string[] { };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue