aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-05-07 23:05:48 +0200
committerGitHub <noreply@github.com>2024-05-07 23:05:48 +0200
commit300542d272ae78b06c5ed56b1d59df7f5e3e72e4 (patch)
treecbea7858b6a275ec481d97da44927127b64547f6 /src/main/java/at/hannibal2/skyhanni
parent37378e2677aa60039f57895e3d955bd719cd29b5 (diff)
downloadskyhanni-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>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/composter/ComposterDisplay.kt11
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)
}