Attempt at fixing windows without an IDE
This commit is contained in:
parent
5ff7f6b608
commit
bb3063f638
|
@ -28,7 +28,7 @@ public class McApi {
|
|||
public static AssetIndex getAssetIndex(VersionInfo info) throws IOException {
|
||||
Path file = Inceptum.ASSETS_DIR.resolve("indexes");
|
||||
if (!Files.exists(file)) Files.createDirectories(file);
|
||||
file = file.resolve(Path.of(info.assetIndex.url).getFileName());
|
||||
file = file.resolve(info.assetIndex.url.substring(info.assetIndex.url.lastIndexOf("/") + 1));
|
||||
try {
|
||||
Utils.downloadFile(info.assetIndex.url, info.assetIndex.sha1, file);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue