mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-10-25 10:24:31 +02:00
Check for cachedFiles existing
This commit is contained in:
@@ -149,6 +149,7 @@ public class UpdateManager {
|
|||||||
ui.submitProgress(new InstallProgress("Checking local files..."));
|
ui.submitProgress(new InstallProgress("Checking local files..."));
|
||||||
|
|
||||||
List<URI> invalidatedUris = new ArrayList<>();
|
List<URI> invalidatedUris = new ArrayList<>();
|
||||||
|
if (manifest.cachedFiles != null) {
|
||||||
Iterator<Map.Entry<URI, ManifestFile.File>> it = manifest.cachedFiles.entrySet().iterator();
|
Iterator<Map.Entry<URI, ManifestFile.File>> it = manifest.cachedFiles.entrySet().iterator();
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
Map.Entry<URI, ManifestFile.File> entry = it.next();
|
Map.Entry<URI, ManifestFile.File> entry = it.next();
|
||||||
@@ -160,6 +161,7 @@ public class UpdateManager {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (manifest.packFileHash != null && packFileSource.hashIsEqual(manifest.packFileHash) && invalidatedUris.size() == 0) {
|
if (manifest.packFileHash != null && packFileSource.hashIsEqual(manifest.packFileHash) && invalidatedUris.size() == 0) {
|
||||||
System.out.println("Modpack is already up to date!");
|
System.out.println("Modpack is already up to date!");
|
||||||
|
|||||||
Reference in New Issue
Block a user