From 47e5ea5cc501f6c3e610b8c771dd9f193573a42a Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Wed, 22 Mar 2023 15:32:51 +0100 Subject: Fixed visitor entity detection for entities without color names --- .../java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni') diff --git a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt index 6133b34e4..b14b431b9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt @@ -377,7 +377,7 @@ class GardenVisitorFeatures { private fun findEntityByNametag(visitorName: String, visitor: Visitor) { Minecraft.getMinecraft().theWorld.loadedEntityList - .filter { it is EntityArmorStand && it.name == visitorName } + .filter { it is EntityArmorStand && it.name.removeColor() == visitorName.removeColor() } .forEach { entity -> Minecraft.getMinecraft().theWorld.loadedEntityList .filter { it !is EntityArmorStand } -- cgit