diff options
Diffstat (limited to 'src/main/java/at')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt | 8 |
1 files changed, 5 insertions, 3 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 53f385662..5fc4474d9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/minion/MinionFeatures.kt @@ -187,10 +187,12 @@ class MinionFeatures { coinsPerDay = "" lastInventoryClosed = System.currentTimeMillis() - val location = lastMinion ?: return + if (IslandType.PRIVATE_ISLAND.isInIsland()) { + val location = lastMinion ?: return - if (location !in minions) { - minions[location]!!.lastClicked = 0 + if (location !in minions) { + minions[location]?.lastClicked = 0 + } } MinionCloseEvent().postAndCatch() } |