Skip to content

Commit

Permalink
[6.2.0] 修复 NMSItemRaw 异常
Browse files Browse the repository at this point in the history
  • Loading branch information
Bkm016 committed Oct 20, 2024
1 parent aaa2fe4 commit 437d1bc
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import org.bukkit.Material
import org.bukkit.inventory.ItemStack
import taboolib.common.Test
import taboolib.module.chat.Components
import taboolib.module.nms.setDisplayName
import taboolib.module.nms.setLore
import taboolib.module.nms.setDisplayNameComponent
import taboolib.module.nms.setLoreComponents

/**
* TabooLib
Expand All @@ -19,10 +19,10 @@ object TestNMSItemRaw : Test() {
override fun check(): List<Result> {
return listOf(
sandbox("NMSItemRaw:setDisplayName()") {
ItemStack(Material.STONE).itemMeta!!.setDisplayName(Components.text("啥比"))
ItemStack(Material.STONE).itemMeta!!.setDisplayNameComponent(Components.text("啥比"))
},
sandbox("NMSItemRaw:setLore()") {
ItemStack(Material.STONE).itemMeta!!.setLore(listOf(Components.text("啥比")))
ItemStack(Material.STONE).itemMeta!!.setLoreComponents(listOf(Components.text("啥比")))
}
)
}
Expand Down

0 comments on commit 437d1bc

Please sign in to comment.