aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/garden
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/garden')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt2
1 files changed, 1 insertions, 1 deletions
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 }