aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-18 22:06:21 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-01-18 22:06:21 +0100
commit422aef39d8a6c26eac7f883ec2648f7557d8c0e4 (patch)
tree03c22451d8a2b309b1c90e35950959e408a6806e /src/main
parent761f9a72e53f962e3c6906a8e27ba42240c93a2f (diff)
downloadskyhanni-422aef39d8a6c26eac7f883ec2648f7557d8c0e4.tar.gz
skyhanni-422aef39d8a6c26eac7f883ec2648f7557d8c0e4.tar.bz2
skyhanni-422aef39d8a6c26eac7f883ec2648f7557d8c0e4.zip
fixed mock test
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/GardenVisitorFeatures.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt2
2 files changed, 3 insertions, 3 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 0fcb4c4b2..566a8c99b 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
@@ -621,11 +621,11 @@ class GardenVisitorFeatures {
}
event.addData {
- val visitors = VisitorAPI.visitors
+ val visitors = VisitorAPI.getVisitors()
add("visitors: ${visitors.size}")
- for (visitor in visitors.values) {
+ for (visitor in visitors) {
add(" ")
add("visitorName: '${visitor.visitorName}'")
add("status: '${visitor.status}'")
diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt
index 4d892528a..c3c832d78 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt
@@ -16,7 +16,7 @@ import at.hannibal2.skyhanni.utils.NEUInternalName
import net.minecraft.item.ItemStack
object VisitorAPI {
- var visitors = mapOf<String, Visitor>()
+ private var visitors = mapOf<String, Visitor>()
var inInventory = false
val config get() = GardenAPI.config.visitors
private val logger = LorenzLogger("garden/visitors/api")