Fix skull loading lag for Minecraft 1.13.2 or older version. (#91)

This commit is contained in:
ZekerZhayard authored and GitHub committed 2020-05-15 22:51:04 +08:00
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());