aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-17 21:52:41 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-17 21:52:41 +0200
commit3e20798cfe3e04d2d85f1d8ef3f96b3d9631b04a (patch)
treebcb1f2f54f63df4c34dab71699be6048bef1d95b
parent8016462b02368161b1192eaba772343a16cea2ac (diff)
downloadskyhanni-3e20798cfe3e04d2d85f1d8ef3f96b3d9631b04a.tar.gz
skyhanni-3e20798cfe3e04d2d85f1d8ef3f96b3d9631b04a.tar.bz2
skyhanni-3e20798cfe3e04d2d85f1d8ef3f96b3d9631b04a.zip
Fixed a bug that visitor items sometimes don't show correctly
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt2
1 files changed, 1 insertions, 1 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 74990d8a3..442c4d47f 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
@@ -116,7 +116,7 @@ class GardenVisitorFeatures {
val requiredItems = mutableMapOf<String, Int>()
val newVisitors = mutableListOf<String>()
for ((visitorName, visitor) in visitors) {
- if (visitor.status != VisitorStatus.WAITING && visitor.status != VisitorStatus.NEW) continue
+ if (visitor.status == VisitorStatus.ACCEPTED || visitor.status == VisitorStatus.REFUSED) continue
val items = visitor.items
if (items.isEmpty()) {