Skip to content

Commit

Permalink
Rename PacketItemData#glow to PacketItemData#glint
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Jul 25, 2023
1 parent b805b3f commit 59baac6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ class PacketItemData internal constructor(val nbt: CompoundTag) {
var durabilityBar: Double = 1.0

/**
* Whether this item should have an enchantment glow. Null means that this is decided by the item's enchantments.
* Whether this item should have an enchantment glint. Null means that this is decided by the item's enchantments.
*/
var glow: Boolean? = null
var glint: Boolean? = null

/**
* The flags that should be hidden on this item.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ internal object PacketItems : Listener {
// enchantments
val enchantmentsTooltip = buildEnchantmentsTooltip(newItemStack)
enchantmentsTooltip.forEach { loreTag += it.withoutPreFormatting().toNBT() }
if (packetItemData.glow ?: enchantmentsTooltip.isNotEmpty()) {
if (packetItemData.glint ?: enchantmentsTooltip.isNotEmpty()) {
newItemTag.put("Enchantments", GLOW_ENCHANTMENT_TAG)
}
// actual lore
Expand Down

0 comments on commit 59baac6

Please sign in to comment.