From 610dd760c09764f97f26d3de583f6f4b0a8ca37a Mon Sep 17 00:00:00 2001 From: microwin7 Date: Thu, 23 Feb 2023 23:24:06 +0300 Subject: [PATCH] [FIX] Check length args DownloadClientCommand --- .../gravit/launchserver/command/hash/DownloadClientCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/command/hash/DownloadClientCommand.java b/LaunchServer/src/main/java/pro/gravit/launchserver/command/hash/DownloadClientCommand.java index 942be0c2..9bc23fd2 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/command/hash/DownloadClientCommand.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/command/hash/DownloadClientCommand.java @@ -38,7 +38,7 @@ public String getUsageDescription() { @Override public void invoke(String... args) throws IOException, CommandException { - verifyArgs(args, 2); + verifyArgs(args, 1); //Version version = Version.byName(args[0]); String versionName = args[0]; String dirName = IOHelper.verifyFileName(args[1] != null ? args[1] : args[0]);