aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-23 10:34:16 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-09-23 10:34:16 +0200
commit5f517bbb4b70efc67da97d514164b2dd764d9aa3 (patch)
treec4ed2187220e96bc62fd384ddb039c70370bbc91 /src/main/java/at/hannibal2/skyhanni/features
parentd71b24f52815fc2f1f2c9ae0ce7ef4afcbc41849 (diff)
downloadskyhanni-5f517bbb4b70efc67da97d514164b2dd764d9aa3.tar.gz
skyhanni-5f517bbb4b70efc67da97d514164b2dd764d9aa3.tar.bz2
skyhanni-5f517bbb4b70efc67da97d514164b2dd764d9aa3.zip
Fixed rare error when opening minion inventory.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt
index b12eb2f3e..9d799b25e 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt
@@ -182,7 +182,7 @@ class MinionFeatures {
}
private fun updateCoinsPerDay(): String {
- val loc = lastMinion!!
+ val loc = lastMinion ?: return "§cNo last minion found! Try reopening the minion view."
val slot = InventoryUtils.getItemsInOpenChest().find { it.slotNumber == 28 } ?: return ""
val stack = slot.stack