diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-02 18:18:53 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-04-02 18:18:53 +0200 |
commit | 6ee6ce3a16aa2f02fb14c322535ad216adedc472 (patch) | |
tree | d14839adfae18f5a80f0e1bc890000ff9b97e8b5 /src/main/java | |
parent | d8b2bac66db0cdda219d12f20615702d79989116 (diff) | |
download | skyhanni-6ee6ce3a16aa2f02fb14c322535ad216adedc472.tar.gz skyhanni-6ee6ce3a16aa2f02fb14c322535ad216adedc472.tar.bz2 skyhanni-6ee6ce3a16aa2f02fb14c322535ad216adedc472.zip |
More information for a farming weight data load fail
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/EliteFarmingWeight.kt | 10 |
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> { |