mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Merge branch 'token_phase_two' into 'master'
Add more support for migrating Editions to TokenScripts See merge request core-developers/forge!885
This commit is contained in:
@@ -75,10 +75,10 @@ public class ImageFetcher {
|
||||
}
|
||||
}
|
||||
final String filename = imageKey.substring(2) + ".jpg";
|
||||
final String tokenUrl = tokenImages.get(filename);
|
||||
String tokenUrl = tokenImages.get(filename);
|
||||
if (tokenUrl == null) {
|
||||
System.err.println("Token " + imageKey + " not found in: " + ForgeConstants.IMAGE_LIST_TOKENS_FILE);
|
||||
return;
|
||||
System.err.println("No specified file.. Attempting to download from default Url");
|
||||
tokenUrl = String.format("%s%s", ForgeConstants.URL_TOKEN_DOWNLOAD, filename);
|
||||
}
|
||||
destFile = new File(ForgeConstants.CACHE_TOKEN_PICS_DIR, filename);
|
||||
downloadUrls.add(tokenUrl);
|
||||
|
||||
Reference in New Issue
Block a user