Attempt at fixing windows without an IDE

This commit is contained in:
J. Fronny 2021-10-30 21:54:08 +00:00
parent 5ff7f6b608
commit bb3063f638
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}