mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Fixed searching for token images (not always worked - e.g. for Plants from Avenger of Zendikar).
This commit is contained in:
parent
7719682e7a
commit
cf45872867
1 changed files with 6 additions and 4 deletions
|
@ -68,12 +68,14 @@ public class CardImageUtils {
|
|||
|
||||
File file = new File(filename);
|
||||
if (!file.exists()) {
|
||||
card.setName(card.getName() + " 1");
|
||||
filename = getImagePath(card, false);
|
||||
CardInfo updated = new CardInfo(card);
|
||||
updated.setName(card.getName() + " 1");
|
||||
filename = getImagePath(updated, false);
|
||||
file = new File(filename);
|
||||
if (!file.exists()) {
|
||||
card.setName(card.getName() + " 2");
|
||||
filename = getImagePath(card, false);
|
||||
updated = new CardInfo(card);
|
||||
updated.setName(card.getName() + " 2");
|
||||
filename = getImagePath(updated, false);
|
||||
file = new File(filename);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue