mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Re-using default ImageKeyFromSet from PaperCard instance
(This sort of things should be looked for, and optimised!)
This commit is contained in:
@@ -184,7 +184,7 @@ public class ImageCache {
|
|||||||
if (useArtCrop) {
|
if (useArtCrop) {
|
||||||
if (ipc != null && ipc.getRules().getSplitType() == CardSplitType.Flip) {
|
if (ipc != null && ipc.getRules().getSplitType() == CardSplitType.Flip) {
|
||||||
// Art crop will always use front face as image key for flip cards
|
// 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");
|
imageKey = TextUtil.fastReplace(imageKey, ".full", ".artcrop");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user