This commit is contained in:
Anthony Calosa
2022-07-12 14:55:59 +08:00
parent 7874178f8b
commit 1710447322

View File

@@ -176,14 +176,18 @@ public final class ImageKeys {
//setlookup //setlookup
if (hasSetLookup(filename)) { if (hasSetLookup(filename)) {
toFind.add(filename); toFind.add(filename);
ThreadUtil.getServicePool().submit(() -> { try {
File f = setLookUpFile(filename, fullborderFile); ThreadUtil.getServicePool().submit(() -> {
if (f != null) File f = setLookUpFile(filename, fullborderFile);
cachedCards.put(filename, f); if (f != null)
else //is null cachedCards.put(filename, f);
missingCards.add(filename); else //is null
missingCards.add(filename);
toFind.remove(filename);
});
} catch (Exception e) {
toFind.remove(filename); 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 //if an image, like phenomenon or planes is missing .full in their filenames but you have an existing images that have .full/.fullborder