feat: throw error skin not found

This commit is contained in:
ineanto 2023-06-29 11:42:37 +02:00
parent 15b02ff390
commit 51ab123eaf

View file

@ -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<>();