Skip to content

Commit

Permalink
fix: 1.20.2 gameprofile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmayr committed Oct 12, 2023
1 parent 63e2952 commit 58f44df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cm/ptks/craftflowers/util/ItemBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public ItemBuilder setTextureId(String textureId) {
return this;

SkullMeta headMeta = (SkullMeta) itemStack.getItemMeta();
GameProfile profile = new GameProfile(UUID.randomUUID(), null);
GameProfile profile = new GameProfile(UUID.randomUUID(), "null");
byte[] encodedData = Base64.getEncoder().encode(String.format("{textures:{SKIN:{url:\"%s\"}}}",
"https://textures.minecraft.net/texture/" + textureId).getBytes());
profile.getProperties().put("textures", new Property("textures", new String(encodedData)));
Expand Down

0 comments on commit 58f44df

Please sign in to comment.