Skip to content

Commit

Permalink
Skip checking if equiv pack loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny-Hui committed Aug 29, 2024
1 parent e7c2161 commit 4a2d022
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,12 @@ public class PackManager {

public static void downloadOrUpdate(boolean init) {
for(PackEntry packEntry : Config.getPackEntries()) {
File packFile = RESOURCE_PACK_LOCATION.resolve(packEntry.getFileName()).toFile();
if(equivPackLoaded(packEntry)) {
logPackInfo(packEntry, "Equivalent pack loaded, not checking.");
continue;
}

File packFile = RESOURCE_PACK_LOCATION.resolve(packEntry.getFileName()).toFile();
HashComparisonResult hashResult;
if(packEntry.sha1Url != null) {
hashResult = HashManager.compareRemoteHash(packEntry, packFile, true);
Expand All @@ -40,8 +44,6 @@ public static void downloadOrUpdate(boolean init) {
// Up to date
packEntry.ready = true;
if(!init) ToastManager.upToDate(packEntry);
} else if(equivPackLoaded(packEntry)) {
logPackInfo(packEntry, "Equivalent pack loaded, not downloading.");
} else {
// Download
CompletableFuture.runAsync(() -> {
Expand Down

0 comments on commit 4a2d022

Please sign in to comment.