Fixed crash when skull texture not found [1.7.10]

This commit is contained in:
Alexander Xia committed 2016-04-10 19:21:28 +08:00
1 parent 0857a80ca8
commit a38aa9687c
1 file changed
+2
@@ -55,6 +55,8 @@ public class ModelManager0 {
*/
public static Map fromUserProfile(UserProfile profile){
Map map=Maps.newHashMap();
if(profile==null)
return map;
if(profile.skinUrl!=null)
map.put(Type.SKIN, getProfileTexture(profile.skinUrl));
if(profile.capeUrl!=null)