diff options
Diffstat (limited to 'src/main/java')
-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) { |