aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-09 18:43:44 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-03-09 18:43:44 +0100
commit93c60d7bd956ca5f922c8f3bb54e8736427aef61 (patch)
tree56d650a2502aaf8b225ee4215636a797a49b40e8
parentfbefefef4f787b383228c6156f1e75b79f8e85bb (diff)
downloadSkyHanni-93c60d7bd956ca5f922c8f3bb54e8736427aef61.tar.gz
SkyHanni-93c60d7bd956ca5f922c8f3bb54e8736427aef61.tar.bz2
SkyHanni-93c60d7bd956ca5f922c8f3bb54e8736427aef61.zip
Fixed kuudra key display showing question mark
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
index 2a0cfc20c..a28cd5e86 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
@@ -5,8 +5,8 @@ import at.hannibal2.skyhanni.api.CollectionAPI
import at.hannibal2.skyhanni.events.RenderItemTipEvent
import at.hannibal2.skyhanni.utils.InventoryUtils
import at.hannibal2.skyhanni.utils.ItemUtils
+import at.hannibal2.skyhanni.utils.ItemUtils.cleanName
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
-import at.hannibal2.skyhanni.utils.ItemUtils.name
import at.hannibal2.skyhanni.utils.LorenzUtils.between
import at.hannibal2.skyhanni.utils.NumberUtil.romanToDecimal
import at.hannibal2.skyhanni.utils.NumberUtil.romanToDecimalIfNeeded
@@ -26,7 +26,7 @@ class ItemDisplayOverlayFeatures {
}
private fun getStackTip(item: ItemStack): String {
- val itemName = item.name ?: return ""
+ val itemName = item.cleanName()
if (SkyHanniMod.feature.inventory.itemNumberAsStackSize.contains(0)) {
when (itemName) {