fix bugs
This commit is contained in:
@@ -10,6 +10,7 @@ import org.bukkit.configuration.ConfigurationSection
|
|||||||
import org.bukkit.inventory.ItemStack
|
import org.bukkit.inventory.ItemStack
|
||||||
import taboolib.library.xseries.parseToMaterial
|
import taboolib.library.xseries.parseToMaterial
|
||||||
import taboolib.module.chat.colored
|
import taboolib.module.chat.colored
|
||||||
|
import taboolib.platform.util.hasLore
|
||||||
|
|
||||||
class VanillaShopItem(
|
class VanillaShopItem(
|
||||||
override val key: Char,
|
override val key: Char,
|
||||||
@@ -29,7 +30,7 @@ class VanillaShopItem(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun equal(itemStack: ItemStack): Boolean {
|
override fun equal(itemStack: ItemStack): Boolean {
|
||||||
return itemStack.itemMeta?.hasLore() == false && itemStack.type == material
|
return itemStack.type == material && !itemStack.hasLore()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun buildItem(): ItemStack {
|
override fun buildItem(): ItemStack {
|
||||||
|
|||||||
Reference in New Issue
Block a user