You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: module/bukkit-nms/bukkit-nms-tag/bukkit-nms-tag-modern/src/main/kotlin/taboolib/module/nms/NMSItemTagImpl.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -72,10 +72,10 @@ class NMSItemTagImpl : NMSItemTag() {
72
72
val nmsItem = getNMSCopy(itemStack)
73
73
returnif (onlyCustom) {
74
74
val tag = nmsItem.get(DataComponents.CUSTOM_DATA)?.copyTag()
75
-
if (tag !=null) itemTagToBukkitCopy(tag).asCompound() elseItemTag()
75
+
if (tag !=null) itemTagToBukkitCopy(tag, true).asCompound() elseItemTag()
76
76
} else {
77
77
val tag =if (versionId >=12106) nmsItem.toNbt() else nmsItem.save(CraftRegistry.getMinecraftRegistry())
78
-
if (tag !=null) itemTagToBukkitCopy(tag, true).asCompound() elseItemTag12005() // 返回一个特殊的 ItemTag
78
+
if (tag !=null) itemTagToBukkitCopy(tag, false).asCompound() elseItemTag12005() // 返回一个特殊的 ItemTag
0 commit comments