mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
token-artwork - try removing variant as a fallback
Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
This commit is contained in:
@@ -130,6 +130,11 @@ public final class ImageKeys {
|
|||||||
// try without set name
|
// try without set name
|
||||||
file = findFile(dir, setlessFilename);
|
file = findFile(dir, setlessFilename);
|
||||||
if (file != null) { return file; }
|
if (file != null) { return file; }
|
||||||
|
// if there's an art variant try without it
|
||||||
|
if (setlessFilename.matches(".*[0-9]*$")) {
|
||||||
|
file = findFile(dir, setlessFilename.replaceAll("[0-9]*$", ""));
|
||||||
|
if (file != null) { return file; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else if (filename.contains("/")) {
|
} else if (filename.contains("/")) {
|
||||||
String setlessFilename = filename.substring(filename.indexOf('/') + 1);
|
String setlessFilename = filename.substring(filename.indexOf('/') + 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user