Skip to content

Commit

Permalink
authlib no longer ships with getValue, use a global (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
WalshyDev authored Dec 25, 2023
1 parent 83793b4 commit da42c2f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ public final class CustomGameProfile extends GameProfile {
static final String PROPERTY_KEY = "textures";

private final URL skinUrl;
private final String texture;

CustomGameProfile(@Nonnull UUID uuid, @Nullable String texture, @Nonnull URL url) {
super(uuid, PLAYER_NAME);
this.skinUrl = url;
this.texture = texture;

if (texture != null) {
getProperties().put(PROPERTY_KEY, new Property(PROPERTY_KEY, texture));
Expand Down Expand Up @@ -68,6 +70,6 @@ void apply(@Nonnull SkullMeta meta) throws NoSuchFieldException, IllegalAccessEx
*/
@Nullable
public String getBase64Texture() {
return getProperties().get(PROPERTY_KEY).iterator().next().getValue();
return this.texture;
}
}

0 comments on commit da42c2f

Please sign in to comment.