Update MinecraftDownloaderTask.java

This commit is contained in:
ArtDev 2021-06-30 14:11:46 +03:00 committed by GitHub
parent d3e65576fa
commit f5d9bd5ebb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -357,7 +357,7 @@ public class MinecraftDownloaderTask extends AsyncTask<String, String, Throwable
DownloadUtils.downloadFile(MINECRAFT_RES + assetPath, outFile);
}
}
public void downloadAssetMapped(JAssetInfo asset, String assetName, File resDir) throws Throwable {
public void downloadAssetMapped(JAssetInfo asset, String assetName, File resDir) throws IOException {
String assetPath = asset.hash.substring(0, 2) + "/" + asset.hash;
File outFile = new File(resDir,"/"+assetName);
if (!outFile.exists()) {