Support Dynamic Skull Texture Index

Local Texture Supported for Static Skull
Fix network bug
Try to use some forge
This commit is contained in:
xfl03 committed 2016-11-19 19:35:17 +08:00
1 parent ea49e7489a
commit a917e67871
9 files changed
+77 -24

No files matched your search

@@ -34,7 +34,7 @@ public class HttpTextureUtil {
return info;
}
if(fakeUrl.startsWith(LOCAL_LEGACY_MARK)){
fakeUrl=fakeUrl.replaceFirst(LOCAL_LEGACY_MARK, "");
fakeUrl=fakeUrl.replace(LOCAL_LEGACY_MARK, "");
String[] t=fakeUrl.split(",",2);
if(t.length!=2)
return info;
@@ -43,13 +43,13 @@ public class HttpTextureUtil {
return info;
}
if(fakeUrl.startsWith(LOCAL_MARK)){
fakeUrl=fakeUrl.replaceFirst(LOCAL_MARK, "");
fakeUrl=fakeUrl.replace(LOCAL_MARK, "");
info.cacheFile=new File(CustomSkinLoader.DATA_DIR,fakeUrl);
info.hash=FilenameUtils.getBaseName(fakeUrl);
return info;
}
if(fakeUrl.startsWith(LEGACY_MARK)){
fakeUrl=fakeUrl.replaceFirst(LEGACY_MARK, "");
fakeUrl=fakeUrl.replace(LEGACY_MARK, "");
info.url=fakeUrl;
info.hash=DigestUtils.sha1Hex(info.url);;
info.cacheFile=HttpTextureUtil.getCacheFile(info.hash);