mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-12 08:48:39 +00:00
update synq and texture check
This commit is contained in:
@@ -266,9 +266,13 @@ public class RewardActor extends Actor implements Disposable, ImageFetcher.Callb
|
|||||||
File file = ImageKeys.getImageFile(imagePath);
|
File file = ImageKeys.getImageFile(imagePath);
|
||||||
try {
|
try {
|
||||||
if (file != null) {
|
if (file != null) {
|
||||||
|
Texture check = Forge.getAssets().manager().get(file.getPath(), Texture.class, false);
|
||||||
|
if (check == null) {
|
||||||
Forge.getAssets().manager().load(file.getPath(), Texture.class, Forge.getAssets().getTextureFilter());
|
Forge.getAssets().manager().load(file.getPath(), Texture.class, Forge.getAssets().getTextureFilter());
|
||||||
Forge.getAssets().manager().finishLoadingAsset(file.getPath());
|
Forge.getAssets().manager().finishLoadingAsset(file.getPath());
|
||||||
}
|
}
|
||||||
|
ImageCache.updateSynqCount(file, 1);
|
||||||
|
}
|
||||||
} catch (Exception e) {}
|
} catch (Exception e) {}
|
||||||
}
|
}
|
||||||
T = renderPlaceholder(new Graphics(), reward.getCard(), false); //Now we can render the card.
|
T = renderPlaceholder(new Graphics(), reward.getCard(), false); //Now we can render the card.
|
||||||
|
|||||||
Reference in New Issue
Block a user