Validate assets even if it’s fully downloaded (#2730)

This commit is contained in:
Duy Tran Khanh 2022-02-15 17:28:08 +07:00 committed by GitHub
parent fb0a96a33f
commit 7c3d1712e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -427,8 +427,8 @@ public class MinecraftDownloaderTask extends AsyncTask<String, String, Throwable
LinkedBlockingQueue<Runnable> workQueue = new LinkedBlockingQueue<>();
final ThreadPoolExecutor executor = new ThreadPoolExecutor(10, 10, 500, TimeUnit.MILLISECONDS, workQueue);
mActivity.mIsAssetsProcessing = true;
File hasDownloadedFile = new File(outputDir, "downloaded/" + assetsVersion + ".downloaded");
if (!hasDownloadedFile.exists()) {
//File hasDownloadedFile = new File(outputDir, "downloaded/" + assetsVersion + ".downloaded");
if (true) { //(!hasDownloadedFile.exists()) {
System.out.println("Assets begin time: " + System.currentTimeMillis());
Map<String, JAssetInfo> assetsObjects = assets.objects;
int assetsSizeBytes=0;