mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-19 14:19:10 +00:00
Fix Dynamic Skull
This commit is contained in:
1 parent
b2d6532709
commit
e63858d561
2 files changed
+10
-4
No files matched your search
@@ -45,6 +45,10 @@ public class HttpUtil0 {
|
||||
HttpURLConnection c=null;
|
||||
try {
|
||||
CustomSkinLoader.logger.info("Try to save '"+url+"' to '"+target.getAbsolutePath()+"'.");
|
||||
if(target.isFile()){
|
||||
CustomSkinLoader.logger.info("Cache file found (Length: "+target.length()+")");
|
||||
return true;
|
||||
}
|
||||
c=createConnection(url,null);
|
||||
int res = c.getResponseCode()/100;
|
||||
if (res==4||res==5||c.getResponseCode()==HttpURLConnection.HTTP_NO_CONTENT) {
|
||||
|
||||
Reference in new issue
Block a user