Re-using default ImageKeyFromSet from PaperCard instance

(This sort of things should be looked for, and optimised!)
This commit is contained in:
leriomaggio
2021-08-26 02:50:11 +01:00
parent dde96156be
commit c2ff9cf3c9

View File

@@ -184,7 +184,7 @@ public class ImageCache {
if (useArtCrop) {
if (ipc != null && ipc.getRules().getSplitType() == CardSplitType.Flip) {
// Art crop will always use front face as image key for flip cards
imageKey = ImageUtil.getImageKey((PaperCard) ipc, false, true);
imageKey = ((PaperCard) ipc).getImageKeyFromSet(); // ImageUtil.getImageKey((PaperCard) ipc, false, true);
}
imageKey = TextUtil.fastReplace(imageKey, ".full", ".artcrop");
}