From 5ac091a11d558717eb42106bcad35d23653dab5d Mon Sep 17 00:00:00 2001 From: Luna Date: Sun, 8 Sep 2024 09:06:01 +0200 Subject: Fix: Heavy Pearls sometimes not detected (#2479) --- src/main/java/at/hannibal2/skyhanni/data/mob/IslandExceptions.kt | 2 +- src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/at/hannibal2/skyhanni/data/mob/IslandExceptions.kt b/src/main/java/at/hannibal2/skyhanni/data/mob/IslandExceptions.kt index ef0f4bff9..2acbe3546 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/mob/IslandExceptions.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/mob/IslandExceptions.kt @@ -121,7 +121,7 @@ object IslandExceptions { armorStand: EntityArmorStand?, nextEntity: EntityLivingBase?, ) = when { - baseEntity is EntitySlime && armorStand?.name == "§f§lCOLLECT!" -> + baseEntity is EntitySlime && MobFilter.heavyPearlPattern.matches(armorStand?.name) -> MobData.MobResult.found( MobFactories.special(baseEntity, "Heavy Pearl"), ) diff --git a/src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt b/src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt index da8699bca..a9f8a1453 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt @@ -103,6 +103,10 @@ object MobFilter { "pattern.summon.owner", ".*Spawned by: (?.*).*", ) + val heavyPearlPattern by repoGroup.pattern( + "pattern.heavypearl.collect", + "§.§lCOLLECT!", + ) /** * REGEX-TEST: §8[§7Lv1§8] §5Horse -- cgit