From d6f4caf8c9de623128421c75413dc75c573008b2 Mon Sep 17 00:00:00 2001 From: microwin7 Date: Wed, 8 Mar 2023 04:50:41 +0300 Subject: [PATCH] Update DownloadAssetCommand.java --- .../gravit/launchserver/command/hash/DownloadAssetCommand.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/LaunchServer/src/main/java/pro/gravit/launchserver/command/hash/DownloadAssetCommand.java b/LaunchServer/src/main/java/pro/gravit/launchserver/command/hash/DownloadAssetCommand.java index a1f79553..4f676c0f 100644 --- a/LaunchServer/src/main/java/pro/gravit/launchserver/command/hash/DownloadAssetCommand.java +++ b/LaunchServer/src/main/java/pro/gravit/launchserver/command/hash/DownloadAssetCommand.java @@ -41,9 +41,8 @@ public String getUsageDescription() { @Override public void invoke(String... args) throws Exception { verifyArgs(args, 1); - //Version version = Version.byName(args[0]); String versionName = args[0]; - String dirName = IOHelper.verifyFileName(args[1] != null ? args[1] : "assets"); + String dirName = IOHelper.verifyFileName(args.length > 1 ? args[1] : "assets"); String type = args.length > 2 ? args[2] : "mojang"; Path assetDir = server.updatesDir.resolve(dirName);