diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt index 7f31b2640..b9c88a095 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt @@ -503,13 +503,10 @@ class GardenVisitorFeatures { } if (visitor.status in setOf(VisitorAPI.VisitorStatus.WAITING, VisitorAPI.VisitorStatus.READY)) { - var newStatus: VisitorAPI.VisitorStatus if (hasItems(visitor)) { - newStatus = VisitorAPI.VisitorStatus.READY - VisitorAPI.changeStatus(visitor, newStatus, "hasItems") + VisitorAPI.changeStatus(visitor, VisitorAPI.VisitorStatus.READY, "hasItems") } else { - newStatus = VisitorAPI.VisitorStatus.WAITING - VisitorAPI.changeStatus(visitor, newStatus, "noLongerHasItems") + VisitorAPI.changeStatus(visitor, VisitorAPI.VisitorStatus.WAITING, "noLongerHasItems") } } |