FIX ImageFetcher BackFace card check

Quick FIX to restore correct download of backface of cards using directly imageKey string pattern
This commit is contained in:
leriomaggio
2021-06-21 13:32:49 +01:00
parent ee7ac95b6a
commit 5ba6f29ebb

View File

@@ -73,7 +73,7 @@ public abstract class ImageFetcher {
System.err.println("Paper card not found for: " + imageKey);
return;
}
final boolean backFace = ImageUtil.hasBackFacePicture(paperCard);
final boolean backFace = imageKey.endsWith(ImageKeys.BACKFACE_POSTFIX);
final String filename = ImageUtil.getImageKey(paperCard, backFace, true);
destFile = new File(ForgeConstants.CACHE_CARD_PICS_DIR, filename + ".jpg");