mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Limit preloading
This commit is contained in:
@@ -239,11 +239,12 @@ public class ImageCache {
|
||||
return;
|
||||
if(deck == null||!Forge.enablePreloadExtendedArt)
|
||||
return;
|
||||
if (deck.getAllCardsInASinglePool().toFlatList().size() <= 100) {
|
||||
for (PaperCard p : deck.getAllCardsInASinglePool().toFlatList()) {
|
||||
if (getImage(p.getImageKey(false),false) == null)
|
||||
System.err.println("could not load card image:"+p.toString());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
public static TextureRegion croppedBorderImage(Texture image) {
|
||||
if (!image.toString().contains(".fullborder."))
|
||||
|
||||
Reference in New Issue
Block a user