diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-22 15:32:51 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-03-22 15:32:51 +0100 |
commit | 47e5ea5cc501f6c3e610b8c771dd9f193573a42a (patch) | |
tree | 756a9d9b961a89112aaffeb0bd296cd5902aaa19 | |
parent | d277a7cc9606f11bfeea78a42e8e67380f9be292 (diff) | |
download | skyhanni-47e5ea5cc501f6c3e610b8c771dd9f193573a42a.tar.gz skyhanni-47e5ea5cc501f6c3e610b8c771dd9f193573a42a.tar.bz2 skyhanni-47e5ea5cc501f6c3e610b8c771dd9f193573a42a.zip |
Fixed visitor entity detection for entities without color names
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/garden/GardenVisitorFeatures.kt | 2 |
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 } |