diff --git a/Common/source/customskinloader/loader/jsonapi/UniSkinAPI.java b/Common/source/customskinloader/loader/jsonapi/UniSkinAPI.java index c4b08aa..7c51d4d 100644 --- a/Common/source/customskinloader/loader/jsonapi/UniSkinAPI.java +++ b/Common/source/customskinloader/loader/jsonapi/UniSkinAPI.java @@ -35,6 +35,8 @@ public class UniSkinAPI implements IJsonAPI { if(profile.skins==null||profile.skins.isEmpty()) return p; + if(profile.model_preference==null||profile.model_preference.isEmpty()) + return p; boolean hasSkin=false; for(String model:profile.model_preference){ diff --git a/README.md b/README.md index a4c6fbc..402cfd2 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,6 @@ Skin Load API Supported: - CustomSkinAPIPlus (Test Only) - [UniSkinAPI](https://github.com/RecursiveG/UniSkinServer/tree/master/doc) - Legacy -- ElfSkin (Self-made API, Test Only) You can use this feature to customize your skin load list so as to load from any skin server you want. If you are the owner of skin server, you can use CustomSkinLoader to load skin from your server if one of the api has been actualized.