Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kevlahnota committed Jul 12, 2022
1 parent 7874178 commit 1710447
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions forge-core/src/main/java/forge/ImageKeys.java
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,18 @@ public static File getImageFile(String key) {
//setlookup
if (hasSetLookup(filename)) {
toFind.add(filename);
ThreadUtil.getServicePool().submit(() -> {
File f = setLookUpFile(filename, fullborderFile);
if (f != null)
cachedCards.put(filename, f);
else //is null
missingCards.add(filename);
try {
ThreadUtil.getServicePool().submit(() -> {
File f = setLookUpFile(filename, fullborderFile);
if (f != null)
cachedCards.put(filename, f);
else //is null
missingCards.add(filename);
toFind.remove(filename);
});
} catch (Exception e) {
toFind.remove(filename);
});
}
}
}
//if an image, like phenomenon or planes is missing .full in their filenames but you have an existing images that have .full/.fullborder
Expand Down

0 comments on commit 1710447

Please sign in to comment.