mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-21 17:22:14 +00:00
Add skin model auto judge
This commit is contained in:
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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user