mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-11-15 11:39:11 +03:00
[FIX] DownloadAssetCommand.java command
ArrayIndexOutOfBoundsException
This commit is contained in:
parent
bfa6966ec6
commit
e05aa4b204
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ public void invoke(String... args) throws Exception {
|
||||||
verifyArgs(args, 1);
|
verifyArgs(args, 1);
|
||||||
//Version version = Version.byName(args[0]);
|
//Version version = Version.byName(args[0]);
|
||||||
String versionName = 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";
|
String type = args.length > 2 ? args[2] : "mojang";
|
||||||
Path assetDir = server.updatesDir.resolve(dirName);
|
Path assetDir = server.updatesDir.resolve(dirName);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue