From e487ab1147593b6b23e0323e994bd91ab502a4f4 Mon Sep 17 00:00:00 2001 From: xfl03 Date: Sun, 2 Jul 2017 18:19:18 +0800 Subject: [PATCH] Fix #27 --- Common/source/customskinloader/loader/jsonapi/UniSkinAPI.java | 2 ++ README.md | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) 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.