From 3737021cb83f0e973fabd778bd8901a920bef6c9 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 29 Nov 2023 00:03:30 +0100 Subject: code cleanup --- .../skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni') 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 (?.*)] .*".toPattern() private val gardenVacuumPatterm = "§7Vacuum Bag: §6(?\\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)}" } -- cgit