mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 08:25:56 +02:00
correct logic for customName
This commit is contained in:
parent
7082da7beb
commit
3bf083b762
1 changed files with 1 additions and 1 deletions
|
|
@ -68,7 +68,7 @@ object PlatformUtil {
|
|||
}
|
||||
|
||||
// Display name
|
||||
private val useCustomName = hasMethod(ItemStack::class.java, "customName")
|
||||
private val useCustomName = hasMethod(ItemMeta::class.java, "customName")
|
||||
|
||||
fun ItemMeta.componentDisplayName(): Component? {
|
||||
if (useCustomName) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue