diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-23 10:13:46 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-23 10:13:46 +0200 |
commit | 03a953fdd85d1465e422b6ef11ca222d30ac5eaf (patch) | |
tree | 9e1d92e5f98e982923f2513d60cce85026710b0c /src/main/java/at/hannibal2/skyhanni/test | |
parent | 18382c67a2c13342a64ea7838f96f0592f5e673c (diff) | |
download | skyhanni-03a953fdd85d1465e422b6ef11ca222d30ac5eaf.tar.gz skyhanni-03a953fdd85d1465e422b6ef11ca222d30ac5eaf.tar.bz2 skyhanni-03a953fdd85d1465e422b6ef11ca222d30ac5eaf.zip |
Fixed item rarity problems
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt index b0da49b33..077945455 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/SkyHanniDebugsAndTests.kt @@ -11,6 +11,7 @@ import at.hannibal2.skyhanni.features.garden.visitor.GardenVisitorColorNames import at.hannibal2.skyhanni.utils.* import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName import at.hannibal2.skyhanni.utils.ItemUtils.getInternalNameOrNull +import at.hannibal2.skyhanni.utils.ItemUtils.getItemRarityOrNull import at.hannibal2.skyhanni.utils.ItemUtils.name import at.hannibal2.skyhanni.utils.NEUItems.getNpcPriceOrNull import at.hannibal2.skyhanni.utils.NumberUtil.addSeparators @@ -272,6 +273,9 @@ class SkyHanniDebugsAndTests { val internalName = itemStack.getInternalName() if ((internalName == NEUInternalName.NONE) && !config.showEmptyNames) return event.toolTip.add("Internal Name: '${internalName.asString()}'") + + val rarity = itemStack.getItemRarityOrNull(logError = false) ?: return + event.toolTip.add("rarity: $rarity") } @SubscribeEvent |