mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-19 07:19:16 +00:00
Fixed crash when skull texture not found
Added switch for cache
This commit is contained in:
1 parent
8fa3a567ac
commit
4ebce88594
4 files changed
+12
-15
No files matched your search
@@ -35,6 +35,8 @@ public class ModelManager0 {
|
||||
*/
|
||||
public static UserProfile toUserProfile(Map profile){
|
||||
UserProfile userProfile=new UserProfile();
|
||||
if(profile==null)
|
||||
return userProfile;
|
||||
MinecraftProfileTexture skin=(MinecraftProfileTexture)profile.get(Type.SKIN);
|
||||
userProfile.skinUrl= skin==null?null:skin.getUrl();//Avoid NullPointerException
|
||||
userProfile.model= skin==null?null:skin.getMetadata("model");
|
||||
|
||||
Reference in new issue
Block a user