diff options
author | Luna <me@lunya.dev> | 2024-09-08 09:06:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-08 09:06:01 +0200 |
commit | 5ac091a11d558717eb42106bcad35d23653dab5d (patch) | |
tree | 3eb75eeec35d59ebef75bfe3e6129c0163bd644d | |
parent | 270788e2ee876450f62a63197cb8914a803f5cc4 (diff) | |
download | skyhanni-5ac091a11d558717eb42106bcad35d23653dab5d.tar.gz skyhanni-5ac091a11d558717eb42106bcad35d23653dab5d.tar.bz2 skyhanni-5ac091a11d558717eb42106bcad35d23653dab5d.zip |
Fix: Heavy Pearls sometimes not detected (#2479)
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/mob/IslandExceptions.kt | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/mob/MobFilter.kt | 4 |
2 files changed, 5 insertions, 1 deletions
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: (?<name>.*).*", ) + val heavyPearlPattern by repoGroup.pattern( + "pattern.heavypearl.collect", + "§.§lCOLLECT!", + ) /** * REGEX-TEST: §8[§7Lv1§8] §5Horse |