Skip to content

Commit

Permalink
fix skull builder exceptions caused by game profile
Browse files Browse the repository at this point in the history
  • Loading branch information
hakan-krgn committed Oct 18, 2023
1 parent 19bd1eb commit 9c050fb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,8 @@ public ItemStack build() {
}

if (this.texture != null) {
GameProfile profile = new GameProfile(UUID.randomUUID(), null);
UUID uuid = UUID.randomUUID();
GameProfile profile = new GameProfile(uuid, uuid.toString());
profile.getProperties().put("textures", new Property("textures", this.texture));
ReflectionUtils.setField(skullMeta, "profile", profile);
}
Expand Down

0 comments on commit 9c050fb

Please sign in to comment.