mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Fetch token script images even if they aren't in the token image file
This commit is contained in:
@@ -75,10 +75,10 @@ public class ImageFetcher {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
final String filename = imageKey.substring(2) + ".jpg";
|
final String filename = imageKey.substring(2) + ".jpg";
|
||||||
final String tokenUrl = tokenImages.get(filename);
|
String tokenUrl = tokenImages.get(filename);
|
||||||
if (tokenUrl == null) {
|
if (tokenUrl == null) {
|
||||||
System.err.println("Token " + imageKey + " not found in: " + ForgeConstants.IMAGE_LIST_TOKENS_FILE);
|
System.err.println("No specified file.. Attempting to download from default Url");
|
||||||
return;
|
tokenUrl = String.format("%s%s", ForgeConstants.URL_TOKEN_DOWNLOAD, filename);
|
||||||
}
|
}
|
||||||
destFile = new File(ForgeConstants.CACHE_TOKEN_PICS_DIR, filename);
|
destFile = new File(ForgeConstants.CACHE_TOKEN_PICS_DIR, filename);
|
||||||
downloadUrls.add(tokenUrl);
|
downloadUrls.add(tokenUrl);
|
||||||
|
|||||||
Reference in New Issue
Block a user