mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-24 03:34:21 +00:00
Improve downloading http textures. (#108)
This commit is contained in:
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){
|
||||
|
||||
Reference in new issue
Block a user