mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- The real (hopefully) fix for the split card LQ pictures not being downloaded correctly from a picture URL.
This commit is contained in:
@@ -67,7 +67,11 @@ public class GuiDownloadPicturesLQ extends GuiDownloader {
|
|||||||
for (final IPaperCard c : CardDb.instance().getUniqueCards()) {
|
for (final IPaperCard c : CardDb.instance().getUniqueCards()) {
|
||||||
//System.out.println(c.getName());
|
//System.out.println(c.getName());
|
||||||
CardRules cardRules = c.getRules();
|
CardRules cardRules = c.getRules();
|
||||||
this.createDLObjects(cardRules.getPictureUrl(), cardRules.getMainPart().getName());
|
if (cardRules != null && cardRules.getSplitType() == CardSplitType.Split && cardRules.getOtherPart() != null) {
|
||||||
|
this.createDLObjects(cardRules.getPictureUrl(), String.format("%s%s", cardRules.getMainPart().getName(), cardRules.getOtherPart().getName()));
|
||||||
|
} else {
|
||||||
|
this.createDLObjects(cardRules.getPictureUrl(), cardRules.getMainPart().getName());
|
||||||
|
}
|
||||||
|
|
||||||
ICardCharacteristics secondSide = cardRules.getOtherPart();
|
ICardCharacteristics secondSide = cardRules.getOtherPart();
|
||||||
if (secondSide != null && cardRules.getSplitType() == CardSplitType.Transform) {
|
if (secondSide != null && cardRules.getSplitType() == CardSplitType.Transform) {
|
||||||
|
|||||||
Reference in New Issue
Block a user