aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt4
1 files changed, 3 insertions, 1 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 329621b4a..03ddafcf1 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt
@@ -28,6 +28,8 @@ class ItemDisplayOverlayFeatures {
private val petLevelPattern = "\\[Lvl (?<level>.*)] .*".toPattern()
private val gardenVacuumPatterm = "§7Vacuum Bag: §6(?<amount>\\d*) Pests?".toPattern()
+ private val bottleOfJyrre = "NEW_BOTTLE_OF_JYRRE".asInternalName()
+
@SubscribeEvent
fun onRenderItemTip(event: RenderItemTipEvent) {
event.stackTip = getStackTip(event.stack)
@@ -198,7 +200,7 @@ class ItemDisplayOverlayFeatures {
}
if (itemNumberAsStackSize.contains(15)) {
- if (item.getInternalNameOrNull() == "NEW_BOTTLE_OF_JYRRE".asInternalName()) {
+ if (item.getInternalNameOrNull() == bottleOfJyrre) {
val seconds = item.getBottleOfJyrreSeconds() ?: 0
return "§a${(seconds / 3600)}"
}