Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ public void placeItem(@Nonnull Player p, @Nonnull Block b) {
ItemStack hand = p.getInventory().getItemInMainHand();
String displayName = ITEM_PREFIX + System.nanoTime();
ItemStack displayItem = CustomItemStack.create(hand, displayName);
if (hand.hasItemMeta() && hand.getItemMeta().hasLore()) {
ItemMeta meta = displayItem.getItemMeta();
meta.setLore(hand.getItemMeta().getLore());
displayItem.setItemMeta(meta);
}
displayItem.setAmount(1);

// Get the display name of the original Item in the Player's hand
Expand Down
Loading