mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
update..
This commit is contained in:
@@ -1,5 +1,7 @@
|
|||||||
package forge.util;
|
package forge.util;
|
||||||
|
|
||||||
|
import forge.localinstance.properties.ForgeConstants;
|
||||||
|
|
||||||
import java.awt.image.BufferedImage;
|
import java.awt.image.BufferedImage;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
@@ -28,7 +30,7 @@ public class SwingImageFetcher extends ImageFetcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void doFetch(String urlToDownload) throws IOException {
|
private void doFetch(String urlToDownload) throws IOException {
|
||||||
String newdespath = urlToDownload.contains(".fullborder.jpg") ?
|
String newdespath = urlToDownload.contains(".fullborder.jpg") || urlToDownload.startsWith(ForgeConstants.URL_PIC_SCRYFALL_DOWNLOAD) ?
|
||||||
TextUtil.fastReplace(destPath, ".full.jpg", ".fullborder.jpg") : destPath;
|
TextUtil.fastReplace(destPath, ".full.jpg", ".fullborder.jpg") : destPath;
|
||||||
if (!newdespath.contains(".full") && urlToDownload.startsWith(ForgeConstants.URL_PIC_SCRYFALL_DOWNLOAD))
|
if (!newdespath.contains(".full") && urlToDownload.startsWith(ForgeConstants.URL_PIC_SCRYFALL_DOWNLOAD))
|
||||||
newdespath = newdespath.replace(".jpg", ".fullborder.jpg"); //fix planes/phenomenon for round border options
|
newdespath = newdespath.replace(".jpg", ".fullborder.jpg"); //fix planes/phenomenon for round border options
|
||||||
|
|||||||
Reference in New Issue
Block a user