mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-11 16:26:22 +00:00
update synq and texture check
This commit is contained in:
@@ -266,8 +266,12 @@ public class RewardActor extends Actor implements Disposable, ImageFetcher.Callb
|
||||
File file = ImageKeys.getImageFile(imagePath);
|
||||
try {
|
||||
if (file != null) {
|
||||
Forge.getAssets().manager().load(file.getPath(), Texture.class, Forge.getAssets().getTextureFilter());
|
||||
Forge.getAssets().manager().finishLoadingAsset(file.getPath());
|
||||
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().finishLoadingAsset(file.getPath());
|
||||
}
|
||||
ImageCache.updateSynqCount(file, 1);
|
||||
}
|
||||
} catch (Exception e) {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user