Skip to content

Commit

Permalink
Apply on original item.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rollczi committed Mar 10, 2022
1 parent 7b39fc3 commit 8ff0b56
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ public ItemStack create(SkullData data) {

@Override
public ItemStack applyOnItem(ItemStack item, SkullData data) {
ItemStack clone = item.clone();
SkullMeta skullMeta = (SkullMeta) clone.getItemMeta();
SkullMeta skullMeta = (SkullMeta) item.getItemMeta();

UUID uuid = UUID.nameUUIDFromBytes((data.getValue() + data.getSignature()).getBytes());
GameProfile gameProfile = new GameProfile(uuid, null);
Expand All @@ -48,8 +47,8 @@ public ItemStack applyOnItem(ItemStack item, SkullData data) {
exception.printStackTrace();
}

clone.setItemMeta(skullMeta);
return clone;
item.setItemMeta(skullMeta);
return item;
}

}

0 comments on commit 8ff0b56

Please sign in to comment.