Skip to content

Commit

Permalink
Fix #363
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Apr 18, 2024
1 parent d4b85dc commit fbdca9c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ internal object PacketItems : Listener, PacketListener {
// enchantments tooltip (above normal lore text)
val enchantmentsTooltip = buildEnchantmentsTooltip(itemStack)
enchantmentsTooltip.forEachIndexed { idx, line -> loreTag.add(idx, line.withoutPreFormatting().toNBT()) }
if (enchantmentsTooltip.isNotEmpty()) tag.put("Enchantments", GLINT_ENCHANTMENT_TAG) // ensures glint effect
if (enchantmentsTooltip.isNotEmpty() && !tag.contains("Enchantments")) tag.put("Enchantments", GLINT_ENCHANTMENT_TAG) // ensures glint effect
// attributes tooltip
buildAttributeModifiersTooltip(player?.serverPlayer, newItemStack).forEach { loreTag += it.withoutPreFormatting().toNBT() }
// advanced tooltips
Expand Down

0 comments on commit fbdca9c

Please sign in to comment.