mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
Fix #5821 by finding in preferred set
This commit is contained in:
parent
2cb2b5e813
commit
e76ce35467
1 changed files with 1 additions and 1 deletions
|
|
@ -439,7 +439,7 @@ public class DownloadPicturesService extends DefaultBoundedRangeModel implements
|
||||||
throw new IllegalStateException("Second side card can't have empty name.");
|
throw new IllegalStateException("Second side card can't have empty name.");
|
||||||
}
|
}
|
||||||
|
|
||||||
CardInfo secondSideCard = CardRepository.instance.findCard(card.getSecondSideName());
|
CardInfo secondSideCard = CardRepository.instance.findCardWPreferredSet(card.getSecondSideName(), card.getSetCode(), false);
|
||||||
if (secondSideCard == null) {
|
if (secondSideCard == null) {
|
||||||
throw new IllegalStateException("Can''t find second side card in database: " + card.getSecondSideName());
|
throw new IllegalStateException("Can''t find second side card in database: " + card.getSecondSideName());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue