diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-05-07 23:05:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-07 23:05:48 +0200 |
commit | 300542d272ae78b06c5ed56b1d59df7f5e3e72e4 (patch) | |
tree | cbea7858b6a275ec481d97da44927127b64547f6 | |
parent | 37378e2677aa60039f57895e3d955bd719cd29b5 (diff) | |
download | skyhanni-300542d272ae78b06c5ed56b1d59df7f5e3e72e4.tar.gz skyhanni-300542d272ae78b06c5ed56b1d59df7f5e3e72e4.tar.bz2 skyhanni-300542d272ae78b06c5ed56b1d59df7f5e3e72e4.zip |
Improvement: made the garden chat message clickable (#1723)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterDisplay.kt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterDisplay.kt index 349d20779..1454b075a 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterDisplay.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterDisplay.kt @@ -2,13 +2,16 @@ package at.hannibal2.skyhanni.features.garden.composter import at.hannibal2.skyhanni.config.ConfigUpdaterMigrator import at.hannibal2.skyhanni.config.enums.OutsideSbFeature +import at.hannibal2.skyhanni.data.IslandType import at.hannibal2.skyhanni.events.GuiRenderEvent import at.hannibal2.skyhanni.events.TabListUpdateEvent import at.hannibal2.skyhanni.features.fame.ReminderUtils import at.hannibal2.skyhanni.features.garden.GardenAPI import at.hannibal2.skyhanni.utils.ChatUtils import at.hannibal2.skyhanni.utils.CollectionUtils.addAsSingletonList +import at.hannibal2.skyhanni.utils.HypixelCommands import at.hannibal2.skyhanni.utils.LorenzUtils +import at.hannibal2.skyhanni.utils.LorenzUtils.isInIsland import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName import at.hannibal2.skyhanni.utils.NEUItems.getItemStack import at.hannibal2.skyhanni.utils.RenderUtils.renderStringsAndItems @@ -186,7 +189,13 @@ class ComposterDisplay { if (System.currentTimeMillis() < storage.lastComposterEmptyWarningTime + 1000 * 60 * 2) return storage.lastComposterEmptyWarningTime = System.currentTimeMillis() - ChatUtils.chat(warningMessage) + if (IslandType.GARDEN.isInIsland()) { + ChatUtils.chat(warningMessage) + } else { + ChatUtils.clickableChat(warningMessage, onClick = { + HypixelCommands.warp("garden") + }) + } LorenzUtils.sendTitle("§eComposter Warning!", 3.seconds) } |