feat: throw error skin not found
This commit is contained in:
parent
15b02ff390
commit
51ab123eaf
1 changed files with 2 additions and 0 deletions
|
@ -141,6 +141,8 @@ public class AppearanceManager {
|
||||||
final Multimap<String, WrappedSignedProperty> properties = gameProfile.getProperties();
|
final Multimap<String, WrappedSignedProperty> properties = gameProfile.getProperties();
|
||||||
properties.get("textures").clear();
|
properties.get("textures").clear();
|
||||||
properties.put("textures", new WrappedSignedProperty("textures", skinResult.getValue(), skinResult.getSignature()));
|
properties.put("textures", new WrappedSignedProperty("textures", skinResult.getValue(), skinResult.getSignature()));
|
||||||
|
} else {
|
||||||
|
return new ActionResult<>(I18NDict.Error.MOJANG_SKIN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return new ActionResult<>();
|
return new ActionResult<>();
|
||||||
|
|
Loading…
Reference in a new issue