aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt
index b33c0150e..9583e889e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt
@@ -230,8 +230,7 @@ class EliteFarmingWeight {
result["rank"].asInt
} catch (e: Exception) {
- apiError = true
- LorenzUtils.error("[SkyHanni] Failed to load farming weight data from elitebot.dev! please report this on discord!")
+ error()
e.printStackTrace()
-1
}
@@ -262,8 +261,13 @@ class EliteFarmingWeight {
println("url: '$url'")
e.printStackTrace()
}
+ error()
+ }
+
+ private fun error() {
apiError = true
- LorenzUtils.error("[SkyHanni] Failed to load farming weight data from elitebot.dev! please report this on discord!")
+ LorenzUtils.error("[SkyHanni] Loading the farming weight data from elitebot.dev failed!")
+ LorenzUtils.chat("§eYou can re-enter the garden to try to fix the problem. If this message repeats itself, please report it on Discord!")
}
private fun calculateCollectionWeight(round: Boolean = true): MutableMap<CropType, Double> {