diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-29 00:03:30 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-11-29 00:03:30 +0100 |
commit | 3737021cb83f0e973fabd778bd8901a920bef6c9 (patch) | |
tree | c2d2d9edff47ce1bb73f782f1ef784ca6a6d63b3 /src/main/java | |
parent | bee150b333b19d3c80ca6f2fcf3d05a2128def31 (diff) | |
download | skyhanni-3737021cb83f0e973fabd778bd8901a920bef6c9.tar.gz skyhanni-3737021cb83f0e973fabd778bd8901a920bef6c9.tar.bz2 skyhanni-3737021cb83f0e973fabd778bd8901a920bef6c9.zip |
code cleanup
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/inventory/ItemDisplayOverlayFeatures.kt | 4 |
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)}" } |