Add: support OptiFine cape

This commit is contained in:
33 committed 2023-01-11 18:51:44 +08:00
1 parent 2d00e12f0a
commit 84072c62f3
4 files changed
+109 -43

No files matched your search

@@ -2,11 +2,7 @@ package customskinloader.config;
import java.io.File;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Comparator;
import java.util.List;
import java.util.Objects;
import java.util.*;
import customskinloader.CustomSkinLoader;
import customskinloader.loader.ProfileLoader;
@@ -29,7 +25,7 @@ public class Config {
public boolean enableDynamicSkull = true;
public boolean enableTransparentSkin = true;
public boolean forceIgnoreHttpsCertificate = false;
public boolean forceLoadAllTextures = false;
public boolean forceLoadAllTextures = true;
public boolean enableCape = true;
public int threadPoolSize = 3;
/**
@@ -233,7 +229,7 @@ public class Config {
profiles.addAll(defaultProfiles);
}
}
profiles.sort((c1, c2) -> Integer.compare(c1.getPriority(), c2.getPriority()));
profiles.sort(Comparator.comparingInt(ICustomSkinLoaderPlugin.IDefaultProfile::getPriority));
List<SkinSiteProfile> loadlist = new ArrayList<>();
for (ICustomSkinLoaderPlugin.IDefaultProfile profile : profiles) {