aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-28 21:44:39 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-28 21:44:39 +0200
commitcaaf4fedb84fc4e95d4d667c1fb6a9e459878182 (patch)
treea948be15a1285a629fcdcd1fbe98d4e8d98cb068 /src/main/java
parent26ff1e1636af71548571e254b32ea0f26871742a (diff)
downloadskyhanni-caaf4fedb84fc4e95d4d667c1fb6a9e459878182.tar.gz
skyhanni-caaf4fedb84fc4e95d4d667c1fb6a9e459878182.tar.bz2
skyhanni-caaf4fedb84fc4e95d4d667c1fb6a9e459878182.zip
Added option to hide the off-screen drop chat message.
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java6
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java
index 0cc4c3f89..5796e609a 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java
+++ b/src/main/java/at/hannibal2/skyhanni/config/features/GardenConfig.java
@@ -764,6 +764,12 @@ public class GardenConfig {
public boolean eliteFarmingWeightOvertakeETA = false;
@Expose
+ @ConfigOption(name = "Offscreen Drop Message", desc = "Show a chat message when joining garden how many spots you have dropped since last garden join.")
+ @ConfigEditorBoolean
+ @ConfigAccordionId(id = 11)
+ public boolean eliteFarmingWeightoffScreenDropMessage = true;
+
+ @Expose
@ConfigOption(name = "Always ETA", desc = "Show the Overtake ETA always, even when not farming at the moment.")
@ConfigEditorBoolean
@ConfigAccordionId(id = 11)
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt
index 2878da5b8..5e6818ccf 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/farming/FarmingWeightDisplay.kt
@@ -278,7 +278,7 @@ class FarmingWeightDisplay {
SkyHanniMod.coroutineScope.launch {
val wasNotLoaded = leaderboardPosition == -1
leaderboardPosition = loadLeaderboardPosition()
- if (wasNotLoaded) {
+ if (wasNotLoaded && config.eliteFarmingWeightoffScreenDropMessage) {
checkOffScreenLeaderboardChanges()
}
ProfileStorageData.profileSpecific?.garden?.faramingWeight?.lastFarmingWeightLeaderboard =