mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-22 22:29:47 +00:00
Add forceDisableCache
This commit is contained in:
4 files changed
+17
-11
No files matched your search
@@ -161,7 +161,7 @@ public class CustomSkinLoader {
|
||||
|
||||
if(username == null || credential == null)
|
||||
return dynamicSkullManager.getTexture(gameProfile);
|
||||
if(config.enableUpdateSkull?profileCache.isReady(credential):profileCache.isExist(credential)){
|
||||
if(config.forceUpdateSkull ?profileCache.isReady(credential):profileCache.isExist(credential)){
|
||||
UserProfile profile=profileCache.getProfile(credential);
|
||||
return ModelManager0.fromUserProfile(profile);
|
||||
}
|
||||
@@ -173,7 +173,7 @@ public class CustomSkinLoader {
|
||||
loadProfile0(gameProfile);//Load in thread
|
||||
Thread.currentThread().setName(tempName);
|
||||
};
|
||||
if (config.enableUpdateSkull) {
|
||||
if (config.forceUpdateSkull) {
|
||||
new Thread(loadThread).start();
|
||||
} else {
|
||||
threadPool.execute(loadThread);
|
||||
|
||||
Reference in new issue
Block a user