Better Client Skin Loading for Cached Skins

This commit is contained in:
Kam committed 2024-02-28 23:47:24 -05:00
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();