aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-26 16:21:03 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-26 16:21:03 +0100
commitfeef78a4b554a3142167db10d7e23bf95e3676bc (patch)
tree5c5bc38a3537205fda8f76ece93358a119b5fa84 /src/main
parent133ca4dedf5eb3075d2d7e4ecb56bcda4c97c579 (diff)
downloadskyhanni-feef78a4b554a3142167db10d7e23bf95e3676bc.tar.gz
skyhanni-feef78a4b554a3142167db10d7e23bf95e3676bc.tar.bz2
skyhanni-feef78a4b554a3142167db10d7e23bf95e3676bc.zip
Workaround for crash when nether reputation helper icon from repo is null.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt
index abac83c25..b2d4a367f 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/nether/reputationhelper/dailyquest/DailyQuestHelper.kt
@@ -271,7 +271,11 @@ class DailyQuestHelper(val reputationHelper: CrimsonIsleReputationHelper) {
result.add(" $stateText$type: §f$displayName$multipleText$sacksText")
} else {
result.add(" $stateText$type: ")
- result.add(NEUItems.getItemStack(item))
+ try {
+ result.add(NEUItems.getItemStack(item))
+ } catch (e: RuntimeException) {
+ e.printStackTrace()
+ }
result.add("§f$displayName$multipleText$sacksText")
}
return result