From 422aef39d8a6c26eac7f883ec2648f7557d8c0e4 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 18 Jan 2024 22:06:21 +0100 Subject: fixed mock test --- .../skyhanni/features/garden/visitor/GardenVisitorFeatures.kt | 4 ++-- .../java/at/hannibal2/skyhanni/features/garden/visitor/VisitorAPI.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main') 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() + private var visitors = mapOf() var inInventory = false val config get() = GardenAPI.config.visitors private val logger = LorenzLogger("garden/visitors/api") -- cgit