mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +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);
|
File file = new File(filename);
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
card.setName(card.getName() + " 1");
|
CardInfo updated = new CardInfo(card);
|
||||||
filename = getImagePath(card, false);
|
updated.setName(card.getName() + " 1");
|
||||||
|
filename = getImagePath(updated, false);
|
||||||
file = new File(filename);
|
file = new File(filename);
|
||||||
if (!file.exists()) {
|
if (!file.exists()) {
|
||||||
card.setName(card.getName() + " 2");
|
updated = new CardInfo(card);
|
||||||
filename = getImagePath(card, false);
|
updated.setName(card.getName() + " 2");
|
||||||
|
filename = getImagePath(updated, false);
|
||||||
file = new File(filename);
|
file = new File(filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue