Improve downloading http textures. (#108)

This commit is contained in:
ZekerZhayard authored and GitHub committed 2020-08-16 19:50:19 +08:00
1 parent a8c8edaf20
commit f64af50a07
5 files changed
+119 -53

No files matched your search

@@ -28,6 +28,7 @@ public class Config {
public boolean forceLoadAllTextures=false;
public boolean enableCape = true;
public int threadPoolSize = 1;
public int retryTime = 3;
//Cache
public int cacheExpiry=30;
@@ -58,6 +59,7 @@ public class Config {
config.loadExtraList();
config.initLocalFolder();
config.threadPoolSize = Math.max(config.threadPoolSize, 1);
config.retryTime = Math.max(config.retryTime, 0);
if(config.ignoreHttpsCertificate)
HttpUtil0.ignoreHttpsCertificate();
if(config.enableCacheAutoClean && !config.enableLocalProfileCache){