Skip to content

Commit

Permalink
Fix: Playtime Copy not working without Limbo Playtime (#3193)
Browse files Browse the repository at this point in the history
  • Loading branch information
lunaynx authored Jan 11, 2025
1 parent 7ccacdc commit 7d40695
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package at.hannibal2.skyhanni.features.misc
import at.hannibal2.skyhanni.data.HypixelData
import at.hannibal2.skyhanni.events.GuiContainerEvent
import at.hannibal2.skyhanni.events.LorenzToolTipEvent
import at.hannibal2.skyhanni.features.misc.limbo.LimboPlaytime
import at.hannibal2.skyhanni.skyhannimodule.SkyHanniModule
import at.hannibal2.skyhanni.utils.ChatUtils
import at.hannibal2.skyhanni.utils.ClipboardUtils
import at.hannibal2.skyhanni.utils.InventoryUtils
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.StringUtils.firstLetterUppercase
import at.hannibal2.skyhanni.utils.StringUtils.removeColor
Expand All @@ -32,7 +32,7 @@ object CopyPlaytime {
if (event.clickedButton != 0) return

event.cancel()
val text = LimboPlaytime.tooltipPlaytime.dropLast(2).toMutableList()
val text = event.item?.getLore()?.toMutableList() ?: return

val profile = HypixelData.profileName.firstLetterUppercase()
text.add(0, "${LorenzUtils.getPlayerName()}'s - $profile Playtime Stats")
Expand Down

0 comments on commit 7d40695

Please sign in to comment.