mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 08:14:00 +02:00
fix default rename text issue
This commit is contained in:
parent
c94c85a3cf
commit
9e7a1a963d
2 changed files with 3 additions and 2 deletions
|
|
@ -18,7 +18,7 @@ plugins {
|
|||
}
|
||||
|
||||
group = "xyz.alexcrea"
|
||||
version = "1.15.5"
|
||||
version = "1.15.6"
|
||||
|
||||
val effectiveVersion = "$version" +
|
||||
(if (System.getenv("SMALL_COMMIT_HASH") != null) "-dev-${System.getenv("SMALL_COMMIT_HASH")!!}" else "")
|
||||
|
|
|
|||
|
|
@ -213,7 +213,8 @@ class PrepareAnvilListener : Listener {
|
|||
else if (useColor) it.displayName
|
||||
else ChatColor.stripColor(it.displayName)
|
||||
|
||||
if (!displayName.contentEquals(renameText)) {
|
||||
|
||||
if (!displayName.contentEquals(renameText) && !(displayName == null && renameText == "")) {
|
||||
it.setDisplayName(renameText)
|
||||
resultItem.itemMeta = it
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue