diff options
author | CalMWolfs <94038482+CalMWolfs@users.noreply.github.com> | 2023-06-12 21:30:50 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-12 13:30:50 +0200 |
commit | 3455d43abdde8311824fc6f6c1f8037f76367a9e (patch) | |
tree | 2fce00b66493541bf2e6a3c2e649e77ae0ff52c5 /src/main | |
parent | 56c5f9fc485731f2a33a2b61fa8b7d81193c207c (diff) | |
download | skyhanni-3455d43abdde8311824fc6f6c1f8037f76367a9e.tar.gz skyhanni-3455d43abdde8311824fc6f6c1f8037f76367a9e.tar.bz2 skyhanni-3455d43abdde8311824fc6f6c1f8037f76367a9e.zip |
tooltip fixes (#230)
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt index 5ed2fd757..b3fcf412e 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt @@ -322,7 +322,7 @@ class GardenVisitorFeatures { } } - @SubscribeEvent + @SubscribeEvent(priority = EventPriority.HIGH) fun onTooltip(event: ItemTooltipEvent) { if (!GardenAPI.inBarn) return if (!inVisitorInventory) return @@ -353,8 +353,9 @@ class GardenVisitorFeatures { val formattedLine = line.substring(4) val (itemName, amount) = ItemUtils.readItemAmount(formattedLine) if (itemName != null) { - val internalName = NEUItems.getInternalNameOrNull(itemName) + var internalName = NEUItems.getInternalNameOrNull(itemName) if (internalName != null) { + internalName = internalName.replace("◆_", "") price = NEUItems.getPrice(internalName) * amount if (config.visitorShowPrice) { |