aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/garden
diff options
context:
space:
mode:
authorEmpa <42304516+ItsEmpa@users.noreply.github.com>2024-04-05 13:34:08 +0200
committerGitHub <noreply@github.com>2024-04-05 22:34:08 +1100
commit2b5d4e8af999fe7e917b4e357411cf4e921bea39 (patch)
treea23faebbc8252fe6970a4f8cd035f4739d0e31a1 /src/main/java/at/hannibal2/skyhanni/features/garden
parent940b961edc0bea93fafa99764454196b0d47e42b (diff)
downloadskyhanni-2b5d4e8af999fe7e917b4e357411cf4e921bea39.tar.gz
skyhanni-2b5d4e8af999fe7e917b4e357411cf4e921bea39.tar.bz2
skyhanni-2b5d4e8af999fe7e917b4e357411cf4e921bea39.zip
fixed message formatting and one message being sent once per tick (oops) (#1364)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt
index 23e9b8a5e..3df7a8bbf 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/FarmingFortuneDisplay.kt
@@ -211,7 +211,7 @@ object FarmingFortuneDisplay {
if (gardenJoinTime.passedSince() > 5.seconds && !foundTabUniversalFortune && !gardenJoinTime.isFarPast()) {
if (lastUniversalFortuneMissingError.passedSince() < 1.minutes) return
ChatUtils.clickableChat(
- "§cCan not read Farming Fortune from tab list! Open /widget and enable the Stats Widget" +
+ "§cCan not read Farming Fortune from tab list! Open /widget and enable the Stats Widget " +
"and showing the Farming Fortune stat.",
command = "widget"
)
@@ -220,10 +220,11 @@ object FarmingFortuneDisplay {
if (firstBrokenCropTime.passedSince() > 10.seconds && !foundTabCropFortune && !firstBrokenCropTime.isFarPast()) {
if (lastCropFortuneMissingError.passedSince() < 1.minutes) return
ChatUtils.clickableChat(
- "§cCan not read Crop Fortune from tab list! Open /widget and enable the Stats Widget" +
+ "§cCan not read Crop Fortune from tab list! Open /widget and enable the Stats Widget " +
"and showing latest Crop Fortune.",
command = "widget"
)
+ lastCropFortuneMissingError = SimpleTimeMark.now()
}
}