aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-29 00:03:30 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-11-29 00:03:30 +0100
commit3737021cb83f0e973fabd778bd8901a920bef6c9 (patch)
treec2d2d9edff47ce1bb73f782f1ef784ca6a6d63b3 /src
parentbee150b333b19d3c80ca6f2fcf3d05a2128def31 (diff)
downloadskyhanni-3737021cb83f0e973fabd778bd8901a920bef6c9.tar.gz
skyhanni-3737021cb83f0e973fabd778bd8901a920bef6c9.tar.bz2
skyhanni-3737021cb83f0e973fabd778bd8901a920bef6c9.zip
code cleanup
Diffstat (limited to 'src')
-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)}"
}