Skip to content

Commit

Permalink
Formatted avatar decoration getter in EntityBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsTheSky committed Apr 27, 2024
1 parent 6a78c63 commit 52a21f4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,9 @@ public UserImpl createUser(DataObject user)
? new User.Profile(id, user.getString("banner", null), user.getInt("accent_color", User.DEFAULT_ACCENT_COLOR_RAW))
: null;

User.AvatarDecoration avatarDecoration = user.optObject("avatar_decoration_data").map(o -> new User.AvatarDecoration(o.getString("asset"), o.getString("sku_id"))).orElse(null);
User.AvatarDecoration avatarDecoration = user.optObject("avatar_decoration_data")
.map(o -> new User.AvatarDecoration(o.getString("asset"), o.getString("sku_id")))
.orElse(null);

if (newUser)
{
Expand Down

0 comments on commit 52a21f4

Please sign in to comment.