Trim before parse

This commit is contained in:
BruceChen 2022-09-05 22:21:04 +08:00
parent 0eb8d9998c
commit e5c3b914dd
2 changed files with 2 additions and 2 deletions

View file

@ -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[] { };