Add skin model auto judge

This commit is contained in:
Alexander Xia committed 2018-05-18 21:06:28 +08:00
1 parent f30d3319b0
commit 883e7b45fc
5 files changed
+37 -17

No files matched your search

@@ -93,10 +93,10 @@ public class ModelManager0 {
if(profile==null)
return map;
if(profile.skinUrl!=null){
Map metadata=null;
if(profile.model!=null&&profile.model.equals("slim")){
Map metadata = null;
if("slim".equals(profile.model) || "auto".equals(profile.model)){
metadata = Maps.newHashMap();
metadata.put("model", "slim");
metadata.put("model", profile.model);
}
map.put(Type.SKIN, getProfileTexture(profile.skinUrl,metadata));
}