diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-23 10:34:16 +0200 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-09-23 10:34:16 +0200 |
commit | 5f517bbb4b70efc67da97d514164b2dd764d9aa3 (patch) | |
tree | c4ed2187220e96bc62fd384ddb039c70370bbc91 /src/main/java | |
parent | d71b24f52815fc2f1f2c9ae0ce7ef4afcbc41849 (diff) | |
download | skyhanni-5f517bbb4b70efc67da97d514164b2dd764d9aa3.tar.gz skyhanni-5f517bbb4b70efc67da97d514164b2dd764d9aa3.tar.bz2 skyhanni-5f517bbb4b70efc67da97d514164b2dd764d9aa3.zip |
Fixed rare error when opening minion inventory.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt | 2 |
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 |