mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-20 11:09:39 +00:00
Make Code Better
This commit is contained in:
1 parent
469c8b62a9
commit
622e834d26
22 files changed
+120
-115
No files matched your search
@@ -18,6 +18,7 @@ public class HttpTextureUtil {
|
||||
LOCAL_MARK="(LOCAL)",
|
||||
LOCAL_LEGACY_MARK="(LOCAL_LEGACY)";
|
||||
public static File defaultCacheDir;
|
||||
@SuppressWarnings("ResultOfMethodCallIgnored")
|
||||
public static void cleanCacheDir(){
|
||||
if(defaultCacheDir!=null){
|
||||
defaultCacheDir.delete();
|
||||
@@ -54,7 +55,7 @@ public class HttpTextureUtil {
|
||||
if(fakeUrl.startsWith(LEGACY_MARK)){
|
||||
fakeUrl=fakeUrl.replace(LEGACY_MARK, "");
|
||||
info.url=fakeUrl;
|
||||
info.hash=DigestUtils.sha1Hex(info.url);;
|
||||
info.hash=DigestUtils.sha1Hex(info.url);
|
||||
info.cacheFile=HttpTextureUtil.getCacheFile(info.hash);
|
||||
return info;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user