mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-21 23:12:15 +00:00
Fix skull loading lag for Minecraft 1.13.2 or older version. (#91)
This commit is contained in:
1 parent
ad846f37a2
commit
fdceb08a2c
5 files changed
+61
-26
No files matched your search
@@ -25,6 +25,10 @@ public class ProfileCache {
|
||||
public boolean isExist(String username){
|
||||
return cachedProfiles.containsKey(username.toLowerCase());
|
||||
}
|
||||
public boolean isLoading(String username) {
|
||||
CachedProfile cp=cachedProfiles.get(username.toLowerCase());
|
||||
return cp != null && cp.loading;
|
||||
}
|
||||
public boolean isReady(String username){
|
||||
CachedProfile cp=cachedProfiles.get(username.toLowerCase());
|
||||
return cp != null && (cp.loading || cp.expiryTime > TimeUtil.getCurrentUnixTimestamp());
|
||||
|
||||
Reference in new issue
Block a user