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