Fix not using the modified string.

This commit is contained in:
alexcrea 2024-07-26 13:33:15 +02:00
parent b6853a6889
commit 90344e635a
No known key found for this signature in database
GPG key ID: 43FD265DB0DBF91F
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ plugins {
}
group = "xyz.alexcrea"
version = "1.5.4-beta-1"
version = "1.5.4-beta.1"
java {
disableAutoTargetJvm()

View file

@ -170,7 +170,7 @@ class AnvilEventListener(private val packetManager: PacketManager) : Listener {
}
if (!displayName.contentEquals(inventoryName)) {
it.setDisplayName(inventory.renameText)
it.setDisplayName(inventoryName)
resultItem.itemMeta = it
return ConfigOptions.itemRenameCost