mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Better Client Skin Loading for Cached Skins
This commit is contained in:
1 parent
27359a429d
commit
c2e4213df5
3 files changed
+26
-19
No files matched your search
@@ -43,6 +43,12 @@ public class ClientCacheHandler {
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean isCachedNPC(ResourceLocation resource) {
|
||||
synchronized (imageDataCache) {
|
||||
return imageDataCache.containsKey(resource.getResourcePath());
|
||||
}
|
||||
}
|
||||
|
||||
public static void clearCache() {
|
||||
ClientCacheHandler.imageDataCache.clear();
|
||||
ClientCacheHandler.animationCache.clear();
|
||||
|
||||
Reference in new issue
Block a user