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..206bdef0 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 @@ -43,7 +43,7 @@ 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);