This commit is contained in:
Anthony Calosa
2023-04-09 07:59:35 +08:00
parent 04e638b789
commit 1b5bebf093

View File

@@ -1,5 +1,7 @@
package forge.util;
import forge.localinstance.properties.ForgeConstants;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
@@ -28,7 +30,7 @@ public class SwingImageFetcher extends ImageFetcher {
}
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;
if (!newdespath.contains(".full") && urlToDownload.startsWith(ForgeConstants.URL_PIC_SCRYFALL_DOWNLOAD))
newdespath = newdespath.replace(".jpg", ".fullborder.jpg"); //fix planes/phenomenon for round border options