Try to fix skin texture parsing bug

This commit is contained in:
xfl03 committed 2016-08-28 19:08:59 +08:00
1 parent 164632c7be
commit c9181c411f
15 files changed
+115 -681

No files matched your search

+2 -2
View File
@@ -16,7 +16,7 @@ public class Config {
public String version;
public boolean enable=true;
public boolean enableSkull=true;
public boolean enableTransparentSkin=false;
public boolean enableTransparentSkin=true;
public int cacheExpiry=10;
public boolean enableUpdateSkull=false;
public boolean enableLocalProfileCache=false;
@@ -77,7 +77,7 @@ public class Config {
ArrayList<SkinSiteProfile> adds=new ArrayList<SkinSiteProfile>();
File[] files=listAddition.listFiles();
for(File file:files){
if(!file.getName().endsWith(".json")&&!file.getName().endsWith(".txt"))
if(!file.getName().toLowerCase().endsWith(".json")&&!file.getName().toLowerCase().endsWith(".txt"))
continue;
try {
CustomSkinLoader.logger.info("Try to load Extra List.("+file.getName()+")");